A corporation manager and dashboard for EVE Online
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

30 rindas
805 B

  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