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