summaryrefslogtreecommitdiff
path: root/config/deploy.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-26 09:25:54 -0700
committermo khan <mo@mokhan.ca>2013-07-26 09:25:54 -0700
commit6dead347a06849a67e87dfdb36ca63efc05e7024 (patch)
tree1831f47cccdc06efc59b6765e901846f7ffde3d4 /config/deploy.rb
parent180f5486575b535de3f56d0a124c95b2f2f4a621 (diff)
parentf6f238c88a0324a3ee60783479e35671b50bdf32 (diff)
Merge pull request #13 from madebyuppercut/ty
run db migrations by default
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb19
1 files changed, 7 insertions, 12 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 33876a1..d366501 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -1,30 +1,25 @@
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/environments"
load "config/recipes/base"
load "config/recipes/nginx"
load "config/recipes/unicorn"
load "config/recipes/postgresql"
load "config/recipes/nodejs"
load "config/recipes/rbenv"
-load "config/recipes/check"
load "config/recipes/newrelic"
set :application, "parley"
set :user, "deployer"
-set :deploy_to, "/home/#{user}/apps/#{application}"
-set :deploy_via, :remote_cache # keeps git repo on server cache
set :use_sudo, false
-
-set :scm, "git"
-set :branch, "master"
-set :repository, "git@github.com:madebyuppercut/parley.git"
-
default_run_options[:pty] = true # password prompt
-ssh_options[:forward_agent] = true # no deploy key for github
+set :scm, :none
+set :repository, "."
+set :deploy_via, :copy
+set :deploy_to, "/home/#{user}/apps/#{application}"
+
+after "deploy:update_code", "deploy:migrate"
after "deploy", "deploy:cleanup" # keep only the last 5 releases
# Instructions