Skip to content

Instantly share code, notes, and snippets.

@thotmx
Last active August 29, 2015 14:01
Show Gist options
  • Save thotmx/19413b1d755a0b452226 to your computer and use it in GitHub Desktop.
Save thotmx/19413b1d755a0b452226 to your computer and use it in GitHub Desktop.
config/deploy/staging.rb
set :stage, :staging
set :rails_env, 'production'
set :deploy_to, "/home/deployerdemo/apps/#{fetch(:application)}"
role :app, %w{deployerdemo@162.243.105.100}
role :web, %w{deployerdemo@162.243.105.100}
role :db, %w{deployerdemo@162.243.105.100}
server '162.243.105.100', user: 'deployerdemo', roles: %w{web app db}
set :branch, ENV["REVISION"] || ENV["BRANCH_NAME"] || "master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment