Guest User

Untitled

a guest
Feb 20th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. set :user, 'justus'
  2. default_run_options[:pty] = true
  3. set :scm, :git
  4. set :scm_passphrase, "XYZ" #This is your custom users password
  5.  
  6. ssh_options[:port] = 1234
  7.  
  8. set :branch, "master"
  9.  
  10. set :application, "application"
  11. set :repository, "git@github.com:ohlhaver/application.git"
  12.  
  13. set :keep_releases, 3
  14.  
  15. set :deploy_via, :remote_cache
  16.  
  17. role :web, 'xx.xx.x.xx'
  18. role :app, 'xx.xx.x.xx'
  19. role :db, 'xx.xx.x.xx', :primary => true
  20.  
  21. set :deploy_to, "/home/justus/#{application}"
  22. set :use_sudo, false
  23.  
  24. task :after_update_code, :roles => [:web, :db, :app] do
  25. run "chmod 755 #{release_path}/public -R"
  26. end
  27.  
  28. task :after_deploy, :roles => [:web] do
  29. run "sed -e \"s/^# ENV/ENV/\" -i #{release_path}/config/environment.rb"
  30. end
Add Comment
Please, Sign In to add comment