Skip to content

Instantly share code, notes, and snippets.

@ihassin
Created December 24, 2013 00:31
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 ihassin/8107048 to your computer and use it in GitHub Desktop.
Save ihassin/8107048 to your computer and use it in GitHub Desktop.
config/deploy/production.rb - Capistrano file to deploy
set :stage, :production
# Simple Role Syntax
# ==================
# Supports bulk-adding hosts to roles, the primary
# server in each group is considered to be the first
# unless any hosts have the primary property set.
role :app, %w{deploy@33.33.33.33}
role :web, %w{deploy@33.33.33.33}
role :db, %w{deploy@33.33.33.33}
# Extended Server Syntax
# ======================
# This can be used to drop a more detailed server
# definition into the server list. The second argument
# something that quacks like a hash can be used to set
# extended properties on the server.
server '33.33.33.33', user: 'deploy', roles: %w{web app}, my_property: :my_value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment