Skip to content

Instantly share code, notes, and snippets.

@arthurfurlan
Created May 14, 2014 18:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthurfurlan/9292a9d91e898605fe25 to your computer and use it in GitHub Desktop.
Save arthurfurlan/9292a9d91e898605fe25 to your computer and use it in GitHub Desktop.
ssh_options[:forward_agent] = true
default_run_options[:pty] = true
##
## available environments
##
task :production do
set :application, 'myapp.com'
set :repository, 'https://github.com/user/project.git'
set :scm, :git
set :use_sudo, true
set :deploy_to, '/tmp/test-deploy-cap'
set :deploy_via, :remote_cache
set :branch, 'master'
server 'root@host.example.com', :web, :app, :db, :primary => true
end
task :development do
set :application, 'myapp.com'
set :repository, 'https://github.com/user/project.git'
set :scm, :git
set :use_sudo, true
set :deploy_to, '/tmp/test-deploy-cap'
set :deploy_via, :remote_cache
set :branch, 'develop'
server 'root@host.example.com', :web, :app, :db, :primary => true
end
after "deploy:restart", "deploy:cleanup"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment