summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTyler Mercier <tylermercier@gmail.com>2013-07-25 10:58:08 -0700
committerTyler Mercier <tylermercier@gmail.com>2013-07-25 10:58:08 -0700
commit98c6ebe4d61080d2f85759efb668a535eb1fc8d0 (patch)
tree9b4188ba9449bd83445b142ab68e47d694dc07db /config
parentf1b68807559ee55f1f23706d6ecfadd9e4e4f973 (diff)
parent57810dd125a9705af1adcfdaa05f43a70448b8fd (diff)
Merge pull request #11 from madebyuppercut/mo
Multiple environment deployments
Diffstat (limited to 'config')
-rw-r--r--config/deploy.rb11
-rw-r--r--config/deploy/mo.rb8
-rw-r--r--config/deploy/production.rb8
3 files changed, 19 insertions, 8 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 0d9d888..c214f71 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -1,4 +1,7 @@
require "bundler/capistrano"
+set :stages, %w(production mo) # this needs to be set before 'capistrano/ext/multistage' is required in
+set :default_stage, "production" # this needs to be set before 'capistrano/ext/multistage' is required in
+require 'capistrano/ext/multistage'
load "config/recipes/base"
load "config/recipes/nginx"
@@ -8,14 +11,6 @@ load "config/recipes/nodejs"
load "config/recipes/rbenv"
load "config/recipes/check"
-# Your HTTP server, Apache/etc
-role :web, "192.241.204.27"
-# This may be the same as your `Web` server
-role :app, "192.241.204.27"
-# This is where Rails migrations will run
-role :db, "192.241.204.27", primary: true
-#role :db, "your slave db-server here"
-
set :application, "parley"
set :user, "deployer"
set :deploy_to, "/home/#{user}/apps/#{application}"
diff --git a/config/deploy/mo.rb b/config/deploy/mo.rb
new file mode 100644
index 0000000..7a4aa1a
--- /dev/null
+++ b/config/deploy/mo.rb
@@ -0,0 +1,8 @@
+# Your HTTP server, Apache/etc
+role :web, "192.241.151.56"
+# This may be the same as your `Web` server
+role :app, "192.241.151.56"
+# This is where Rails migrations will run
+role :db, "192.241.151.56", primary: true
+
+set :branch, "mo"
diff --git a/config/deploy/production.rb b/config/deploy/production.rb
new file mode 100644
index 0000000..b4224ee
--- /dev/null
+++ b/config/deploy/production.rb
@@ -0,0 +1,8 @@
+# Your HTTP server, Apache/etc
+role :web, "www.parleytool.com"
+# This may be the same as your `Web` server
+role :app, "www.parleytool.com"
+# This is where Rails migrations will run
+role :db, "www.parleytool.com", primary: true
+#role :db, "your slave db-server here"
+