Skip to content

Instantly share code, notes, and snippets.

@syshen
Created January 5, 2012 02:39
Show Gist options
  • Save syshen/1563437 to your computer and use it in GitHub Desktop.
Save syshen/1563437 to your computer and use it in GitHub Desktop.
task :develop do
set :branch, "release"
set :target, "dev.yourweb.com"
role :web, "dev.yourweb.com"
role :worker, "dev.yourweb.com"
role :scheduler, "dev.yourweb.com"
role :batch, "dev.yourweb.com"
end
task :staging do
set :branch, "master"
set :target, "staging.yourweb.com"
role :web, "staging.yourweb.com"
role :worker, "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com"
role :scheduler, "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com"
role :batch, "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com"
end
task :production do
set :branch, "master"
set :target, "www.yourweb.com"
role :web, "www.yourweb.com"
role :worker, "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com", "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com", "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com"
role :batch, "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com"
role :scheduler, "ec2-XXX-XXX-XXX-XXX.us-west-1.compute.amazonaws.com"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment