/config/deploy.rb
Ruby | 34 lines | 12 code | 7 blank | 15 comment | 0 complexity | ada5a2e8b09c91269c93044013531240 MD5 | raw file
- set :application, "patient_lookup"
- set :repository, "git@bitbucket.org:physiciansupportsystems/patient_lookup.git"
- set :scm, :git
- # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
- # set :scm_username, "zbrumbach"
- set :deploy_to, "/var/rails/patient_lookup"
- set :user, "zach.brumbach"
- set :use_sudo, false
- role :web, "mtjtransfer01" # Your HTTP server, Apache/etc
- role :app, "mtjtransfer01" # This may be the same as your `Web` server
- role :db, "mtjtransfer01", :primary => true # This is where Rails migrations will run
- #role :db, "your slave db-server here"
- after 'deploy' do
- run "cd #{release_path}; RAILS_ENV=production rake assets:precompile"
- end
- # if you want to clean up old releases on each deploy uncomment this:
- # after "deploy:restart", "deploy:cleanup"
- # if you're still using the script/reaper helper you will need
- # these http://github.com/rails/irs_process_scripts
- # If you are using Passenger mod_rails uncomment this:
- # 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,'tmp','restart.txt')}"
- # end
- # end