Guest User

Untitled

a guest
Jul 18th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. require "bundler/capistrano"
  2. set :stages , %w(qa production)
  3. set :default_stage , "qa"
  4. require "capistrano/ext/multistage"
  5.  
  6. set :application , "APP_NAME"
  7. set :repository , "git@github.com:ORG_NAME/APP_NAME.git"
  8. set :user , "deploy"
  9. set :runner , user
  10. set :scm , :git
  11. set :deploy_to , "/var/www/xxxx"
  12. set :use_sudo , false
  13. set :git_enable_submodules , 1
  14. ssh_options[:forward_agent] = true
  15. default_run_options[:pty] = true
  16.  
  17.  
  18. # If you are using Passenger mod_rails uncomment this:
  19. namespace :deploy do
  20. task :start do ; end
  21. task :stop do ; end
  22. task :restart, :roles => :app, :except => { :no_release => true } do
  23. run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  24. end
  25.  
  26. #desc "Upload Monit Config File"
  27. #task :upload_monit_config do
  28. #run "cd #{current_path} && #{sudo} cp config/monit/#{stage}.monit /etc/monit/conf.d/"
  29. #end
  30. end
  31. after "deploy", "deploy:cleanup"
Add Comment
Please, Sign In to add comment