PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/src/edmontontrasitsms/config/deploy.rb

https://bitbucket.org/joeljackson/edmontontransitsms
Ruby | 26 lines | 17 code | 6 blank | 3 comment | 0 complexity | 6441b07da060d2d9e9ccb6029c9204ef MD5 | raw file
  1. set :application, "edmontontransitsms"
  2. set :repository, "ssh://hg@bitbucket.org/joeljackson/edmontontransitsms"
  3. set :scm, :mercurial
  4. set :user, "deployment"
  5. set :deploy_to, "/home/#{user}/apps/#{application}"
  6. set :rails_env, :production
  7. role :web, "blackskycorp.com" # Your HTTP server, Apache/etc
  8. role :app, "blackskycorp.com" # This may be the same as your `Web` server
  9. role :db, "blackskycorp.com", :primary => true # This is where Rails migrations will run
  10. set :use_sudo, false
  11. # If you are using Passenger mod_rails uncomment this:
  12. # if you're still using the script/reapear helper you will need
  13. # these http://github.com/rails/irs_process_scripts
  14. namespace :deploy do
  15. task :start do ; end
  16. task :stop do ; end
  17. task :restart, :roles => :app, :except => { :no_release => true } do
  18. run "#{try_sudo} touch #{File.join(current_path,'src','edmontontransitsms','tmp','restart.txt')}"
  19. end
  20. end