From 230a3756b0aee53a5f85bf745571156ca578c60a Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 21 Jun 2014 15:50:29 +0200 Subject: Set up basic capistrano config. --- config/deploy/production.rb.example | 48 ++++--------------------------------- config/deploy/staging.rb.example | 48 ++++--------------------------------- 2 files changed, 10 insertions(+), 86 deletions(-) (limited to 'config') diff --git a/config/deploy/production.rb.example b/config/deploy/production.rb.example index e664a6c..9636323 100644 --- a/config/deploy/production.rb.example +++ b/config/deploy/production.rb.example @@ -1,45 +1,7 @@ -# 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. +# Set the server address and user name to your configuration here: +server 'example.com', user: 'deploy', roles: %w{web app db} -role :app, %w{deploy@example.com} -role :web, %w{deploy@example.com} -role :db, %w{deploy@example.com} +#Change this to the proper directory on your server: +set :deploy_to, '/var/www/app' - -# Extended Server Syntax -# ====================== -# This can be used to drop a more detailed server definition into the -# server list. The second argument is a, or duck-types, Hash and is -# used to set extended properties on the server. - -server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value - - -# Custom SSH Options -# ================== -# You may pass any option but keep in mind that net/ssh understands a -# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start). -# -# Global options -# -------------- -# set :ssh_options, { -# keys: %w(/home/rlisowski/.ssh/id_rsa), -# forward_agent: false, -# auth_methods: %w(password) -# } -# -# And/or per server (overrides global) -# ------------------------------------ -# 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' -# } +set :branch, 'production' diff --git a/config/deploy/staging.rb.example b/config/deploy/staging.rb.example index e664a6c..1d1421c 100644 --- a/config/deploy/staging.rb.example +++ b/config/deploy/staging.rb.example @@ -1,45 +1,7 @@ -# 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. +# Set the server address and user name to your configuration here: +server 'example.com', user: 'deploy', roles: %w{web app db} -role :app, %w{deploy@example.com} -role :web, %w{deploy@example.com} -role :db, %w{deploy@example.com} +#Change this to the proper directory on your server: +set :deploy_to, '/var/www/app' - -# Extended Server Syntax -# ====================== -# This can be used to drop a more detailed server definition into the -# server list. The second argument is a, or duck-types, Hash and is -# used to set extended properties on the server. - -server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value - - -# Custom SSH Options -# ================== -# You may pass any option but keep in mind that net/ssh understands a -# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start). -# -# Global options -# -------------- -# set :ssh_options, { -# keys: %w(/home/rlisowski/.ssh/id_rsa), -# forward_agent: false, -# auth_methods: %w(password) -# } -# -# And/or per server (overrides global) -# ------------------------------------ -# 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' -# } +set :branch, 'staging' -- cgit v1.2.3