master
 1# server-based syntax
 2# ======================
 3# Defines a single server with a list of roles and multiple properties.
 4# You can define all roles on a single server, or split them:
 5
 6# server 'example.com', user: 'deploy', roles: %w{app db web}, my_property: :my_value
 7# server 'example.com', user: 'deploy', roles: %w{app web}, other_property: :other_value
 8# server 'db.example.com', user: 'deploy', roles: %w{db}
 9server 'www.stronglifters.com', user: 'rails', roles: %w{web}
10
11set :rails_env, 'production'
12
13# role-based syntax
14# ==================
15
16# Defines a role with one or multiple servers. The primary server in each
17# group is considered to be the first unless any  hosts have the primary
18# property set. Specify the username and a domain or IP for the server.
19# Don't use `:all`, it's a meta role.
20
21# role :app, %w{deploy@example.com}, my_property: :my_value
22# role :web, %w{user1@primary.com user2@additional.com}, other_property: :other_value
23# role :db,  %w{deploy@example.com}
24
25# Configuration
26# =============
27# You can set any configuration variable like in config/deploy.rb
28# These variables are then only loaded and set in this stage.
29# For available Capistrano configuration variables see the documentation page.
30# http://capistranorb.com/documentation/getting-started/configuration/
31# Feel free to add new variables to customise your setup.
32
33# Custom SSH Options
34# ==================
35# You may pass any option but keep in mind that net/ssh understands a
36# limited set of options, consult the Net::SSH documentation.
37# http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start
38#
39# Global options
40# --------------
41#  set :ssh_options, {
42#    keys: %w(/home/rlisowski/.ssh/id_rsa),
43#    forward_agent: false,
44#    auth_methods: %w(password)
45#  }
46#
47# The server-based syntax can be used to override options:
48# ------------------------------------
49# server 'example.com',
50#   user: 'user_name',
51#   roles: %w{web app},
52#   ssh_options: {
53#     user: 'user_name', # overrides user setting above
54#     keys: %w(/home/user_name/.ssh/id_rsa),
55#     forward_agent: false,
56#     auth_methods: %w(publickey password)
57#     # password: 'please use keys'
58#   }