Sha256: 26b92d72bd54a2b44e339e6312a54c531c68e0b8bb341e3001096569f2677ba3

Contents?: true

Size: 1.9 KB

Versions: 1

Compression:

Stored size: 1.9 KB

Contents

# 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.
# Don't declare `role :all`, it's a meta role
#role :app, %w{<%=deploy_user%>@example.com}
#role :web, %w{<%=deploy_user%>@example.com}
#role :db,  %w{<%=deploy_user%>@example.com}

<%if stage == 'online'%>
#Customize, override config/deploy.rb
set :repo_url, "https://github.com/cao7113/<%=appname%>.git"
set :deploy_to, '/apps/<%=appname%>'
set :rails_env, 'production'
<%else%>
## Customize
set :deploy_to, File.expand_path('<%=is_prod ? "/apps" : "~/tmp/#{stage}"%>/<%=appname%>')
<%end%>

# 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 "<%=stage == 'online' ? 'ip_or_shareup.me' : 'localhost'%>", user: '<%=deploy_user%>', roles: %w{web app db} #, my_property: :my_value
#set :log_level, :<%=(fetch(:rails_env)||stage) == 'production' ? 'info' : 'debug'%>

# you can set custom ssh options
# it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options
# you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start)
# set it globally
#  set :ssh_options, {
#    keys: %w(/home/rlisowski/.ssh/id_rsa),
#    forward_agent: false,
#    auth_methods: %w(password)
#  }
# and/or per server
# server 'example.com',
#   user: 'user_name',
#   roles: %w{web app},
#   ssh_options: {
#     user: 'user_name', # overrides user setting above
#     keys: %w(/home/user_name/.ssh/id_rsa),
#     forward_agent: false,
#     auth_methods: %w(publickey password)
#     # password: 'please use keys'
#   }
# setting per server overrides global ssh_options

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capup-0.0.4 lib/capup/capistrano/templates/stage.rb.erb