Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "bundler/capistrano"
- set :stages , %w(qa production)
- set :default_stage , "qa"
- require "capistrano/ext/multistage"
- set :application , "APP_NAME"
- set :repository , "git@github.com:ORG_NAME/APP_NAME.git"
- set :user , "deploy"
- set :runner , user
- set :scm , :git
- set :deploy_to , "/var/www/xxxx"
- set :use_sudo , false
- set :git_enable_submodules , 1
- ssh_options[:forward_agent] = true
- default_run_options[:pty] = true
- # 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
- #desc "Upload Monit Config File"
- #task :upload_monit_config do
- #run "cd #{current_path} && #{sudo} cp config/monit/#{stage}.monit /etc/monit/conf.d/"
- #end
- end
- after "deploy", "deploy:cleanup"
Add Comment
Please, Sign In to add comment