1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

prefer single quotes, by the beard of the prophet!

This commit is contained in:
Xavier Noria 2014-12-20 00:51:30 +01:00
parent 0cd5ddbbe1
commit 83bbc2352c

View file

@ -7,24 +7,24 @@ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
chdir APP_ROOT do
# This script is a starting point to setup your application.
# Add necessary setup steps to this file:
# Add necessary setup steps to this file.
puts "== Installing dependencies =="
system "gem install bundler --conservative"
system("bundle check") or system("bundle install")
puts '== Installing dependencies =='
system 'gem install bundler --conservative'
system('bundle check') or system('bundle install')
# puts "\n== Copying sample files =="
# unless File.exist?("config/database.yml")
# cp "config/database.yml.sample", "config/database.yml"
# unless File.exist?('config/database.yml')
# cp 'config/database.yml.sample', 'config/database.yml'
# end
puts "\n== Preparing database =="
system "ruby bin/rake db:setup"
system 'ruby bin/rake db:setup'
puts "\n== Removing old logs and tempfiles =="
rm_f Dir.glob("log/*")
rm_rf "tmp/cache"
rm_f Dir.glob('log/*')
rm_rf 'tmp/cache'
puts "\n== Restarting application server =="
touch "tmp/restart.txt"
touch 'tmp/restart.txt'
end