diff options
Diffstat (limited to 'config/deploy.rb')
| -rw-r--r-- | config/deploy.rb | 19 |
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 |
