Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set :user, 'justus'
- default_run_options[:pty] = true
- set :scm, :git
- set :scm_passphrase, "XYZ" #This is your custom users password
- ssh_options[:port] = 1234
- set :branch, "master"
- set :application, "application"
- set :repository, "git@github.com:ohlhaver/application.git"
- set :keep_releases, 3
- set :deploy_via, :remote_cache
- role :web, 'xx.xx.x.xx'
- role :app, 'xx.xx.x.xx'
- role :db, 'xx.xx.x.xx', :primary => true
- set :deploy_to, "/home/justus/#{application}"
- set :use_sudo, false
- task :after_update_code, :roles => [:web, :db, :app] do
- run "chmod 755 #{release_path}/public -R"
- end
- task :after_deploy, :roles => [:web] do
- run "sed -e \"s/^# ENV/ENV/\" -i #{release_path}/config/environment.rb"
- end
Add Comment
Please, Sign In to add comment