Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add in multistage

  • Loading branch information...
commit 337aff40bcaca28d9c0eab995bcdb138caf551e7 1 parent eff17b4
@markjaquith authored
View
8 Capistrano/Capfile
@@ -1,6 +1,12 @@
require 'rubygems'
require 'railsless-deploy'
load 'lib/misc'
+
+# Multistage
+set :stages, ['production', 'staging']
+set :default_stage, 'production'
+require 'capistrano/ext/multistage'
+
load 'lib/tasks'
load 'lib/deploy' # Loads config/config.rb after
-load 'lib/deploy-after'
+load 'lib/deploy-after'
View
4 Capistrano/config/.gitignore
@@ -1 +1,3 @@
-config.rb
+config.rb
+production.rb
+staging.rb
View
14 Capistrano/config/SAMPLE.config.rb
@@ -2,22 +2,10 @@
set :application, "WP Stack Site"
set :repository, "set your git repository location here"
-set :deploy_to, "/srv/www/example.com"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
# Using Git Submodules?
set :git_enable_submodules, 1
-# role :web, "your web server here"
-# role :web, "second web server here"
-# role :web, "third web server here, etc"
-
-# role :memcached, "your memcached server here"
-# role :memcached, "second memcached server here, etc"
-
-# Alternatively, if your web servers are the same as your memcached servers,
-# comment out all the "role" lines and use "server" lines:
-
-# server "your web/memcached server here", :web, :memcached
-# server "second web/memcached server here", :web, :memcached
+# You're not done! You must also configure production.rb and staging.rb
View
24 Capistrano/config/SAMPLE.production.rb
@@ -0,0 +1,24 @@
+# This file is only loaded for the production environment
+# Customize it and rename it as production.rb
+
+# Where should the site deploy to?
+set :deploy_to, "/srv/www/example.com"
+
+# Now configure the servers for this environment
+
+# OPTION 1
+
+# role :web, "your web server here"
+# role :web, "second web server here"
+# role :web, "third web server here, etc"
+
+# role :memcached, "your memcached server here"
+# role :memcached, "second memcached server here, etc"
+
+# OPTION 2
+
+# If your web servers are the same as your memcached servers,
+# comment out all the "role" lines and use "server" lines:
+
+# server "your web/memcached server here", :web, :memcached
+# server "second web/memcached server here", :web, :memcached
View
24 Capistrano/config/SAMPLE.staging.rb
@@ -0,0 +1,24 @@
+# This file is only loaded for the staging environment
+# Customize it and rename it as staging.rb
+
+# Where should the site deploy to?
+set :deploy_to, "/srv/www/example.com"
+
+# Now configure the servers for this environment
+
+# OPTION 1
+
+# role :web, "your web server here"
+# role :web, "second web server here"
+# role :web, "third web server here, etc"
+
+# role :memcached, "your memcached server here"
+# role :memcached, "second memcached server here, etc"
+
+# OPTION 2
+
+# If your web servers are the same as your memcached servers,
+# comment out all the "role" lines and use "server" lines:
+
+# server "your web/memcached server here", :web, :memcached
+# server "second web/memcached server here", :web, :memcached
Please sign in to comment.
Something went wrong with that request. Please try again.