A corporation manager and dashboard for EVE Online
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

há 9 anos
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