aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-06-21 15:50:29 +0200
committerHarald Eilertsen <haraldei@anduin.net>2014-06-21 15:50:29 +0200
commit230a3756b0aee53a5f85bf745571156ca578c60a (patch)
tree8684ae6baa90b9d6563fd5b78d94576e50d1d107 /config
parent5c16658690afb3b153f2c56bcf8fcffc5ade83cd (diff)
downloadhmnoweb-230a3756b0aee53a5f85bf745571156ca578c60a.tar.gz
hmnoweb-230a3756b0aee53a5f85bf745571156ca578c60a.tar.bz2
hmnoweb-230a3756b0aee53a5f85bf745571156ca578c60a.zip
Set up basic capistrano config.
Diffstat (limited to 'config')
-rw-r--r--config/deploy/production.rb.example48
-rw-r--r--config/deploy/staging.rb.example48
2 files changed, 10 insertions, 86 deletions
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'