summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
+