Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

il y a 5 ans
1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env ruby
  2. require 'pathname'
  3. # path to your application root.
  4. APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
  5. Dir.chdir APP_ROOT do
  6. # This script is a starting point to setup your application.
  7. # Add necessary setup steps to this file:
  8. puts "== Installing dependencies =="
  9. system "gem install bundler --conservative"
  10. system "bundle check || bundle install"
  11. # puts "\n== Copying sample files =="
  12. # unless File.exist?("config/database.yml")
  13. # system "cp config/database.yml.sample config/database.yml"
  14. # end
  15. puts "\n== Preparing database =="
  16. system "bin/rake db:setup"
  17. puts "\n== Removing old logs and tempfiles =="
  18. system "rm -f log/*"
  19. system "rm -rf tmp/cache"
  20. puts "\n== Restarting application server =="
  21. system "touch tmp/restart.txt"
  22. end