Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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@}
role :web, %w{deploy@}
role :db, %w{deploy@}
# 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 '', 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