summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-25 11:17:53 -0600
committermo khan <mo@mokhan.ca>2013-07-25 11:17:53 -0600
commit23098a9d98fa83548f9fae5c43e0e0db2196fe97 (patch)
tree66332255776165cd560c5a32d711a936e8793119
parentf1b68807559ee55f1f23706d6ecfadd9e4e4f973 (diff)
load in capistrano multistage and more production specific config to deploy/production.rb
-rw-r--r--config/deploy.rb11
-rw-r--r--config/deploy/mo.rb6
-rw-r--r--config/deploy/production.rb8
3 files changed, 17 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..5f8f52c
--- /dev/null
+++ b/config/deploy/mo.rb
@@ -0,0 +1,6 @@
+# Your HTTP server, Apache/etc
+role :web, "127.0.0.1"
+# This may be the same as your `Web` server
+role :app, "127.0.0.1"
+# This is where Rails migrations will run
+role :db, "127.0.0.1", primary: true
diff --git a/config/deploy/production.rb b/config/deploy/production.rb
new file mode 100644
index 0000000..3b6e8cb
--- /dev/null
+++ b/config/deploy/production.rb
@@ -0,0 +1,8 @@
+# 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"
+