This repository was archived by the owner on Jul 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env ruby
2+ ENV [ 'BUNDLE_GEMFILE' ] ||= File . expand_path ( '../../Gemfile' , __FILE__ )
3+ load Gem . bin_path ( 'bundler' , 'bundle' )
File renamed without changes.
Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
33
4- APP_PATH = File . expand_path ( '../../config/application' , __FILE__ )
5- require File . expand_path ( '../../ config/boot' , __FILE__ )
4+ APP_PATH = File . expand_path ( '../../config/application' , __FILE__ )
5+ require_relative '../config/boot'
66require 'rails/commands'
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env ruby
2+ require_relative '../config/boot'
3+ require 'rake'
4+ Rake . application . run
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env ruby
2+ require 'pathname'
3+
4+ # path to your application root.
5+ APP_ROOT = Pathname . new File . expand_path ( '../../' , __FILE__ )
6+
7+ Dir . chdir APP_ROOT do
8+ # This script is a starting point to setup your application.
9+ # Add necessary setup steps to this file:
10+
11+ puts "== Installing dependencies =="
12+ system "gem install bundler --conservative"
13+ system "bundle check || bundle install"
14+
15+ # puts "\n== Copying sample files =="
16+ # unless File.exist?("config/database.yml")
17+ # system "cp config/database.yml.sample config/database.yml"
18+ # end
19+
20+ puts "\n == Preparing database =="
21+ system "bin/rake db:setup"
22+
23+ puts "\n == Removing old logs and tempfiles =="
24+ system "rm -f log/*"
25+ system "rm -rf tmp/cache"
26+
27+ puts "\n == Restarting application server =="
28+ system "touch tmp/restart.txt"
29+ end
Original file line number Diff line number Diff line change @@ -7,4 +7,3 @@ bundle install --deployment --without development test
77bundle exec rake casino_core:db:migrate
88
99bundle exec rake assets:precompile
10-
You can’t perform that action at this time.
0 commit comments