Configure: Stages
Set stage specific deployment options
# Stage Details
# ==================
set :stage, :staging
set :branch, 'master'
!
# Server Details
# ==================
server 'staging.myapp.com',
user: 'ubuntu',
roles: %w{web app db}
!
# Server Details (alt)
role :app, %w{
[email protected]}
role :web, %w{
[email protected]}
role :db, %w{
[email protected]}
!
# Deployment Details
# ==================
set :deploy_to, "/var/www/site/staging"
# Stage Details
# ==================
set :stage, :production
set :branch, 'master'
!
# Server Details
# ==================
server 'myapp.com',
user: 'ubuntu',
roles: %w{web app db}
!
# Server Details (alt)
role :app, %w{
[email protected]}
role :web, %w{
[email protected]}
role :db, %w{
[email protected]}
!
# Deployment Details
# ==================
set :deploy_to, "/var/www/site/prod"
config/deploy/staging.rb config/deploy/production.rb