summaryrefslogtreecommitdiff
path: root/config/deploy.rb
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 /config/deploy.rb
parentf1b68807559ee55f1f23706d6ecfadd9e4e4f973 (diff)
load in capistrano multistage and more production specific config to deploy/production.rb
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb11
1 files changed, 3 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}"