require "bundler/capistrano" 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/newrelic" set :application, "parley" set :user, "deployer" set :use_sudo, false default_run_options[:pty] = true # password prompt 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 ############## # cap deploy:install # cap deploy:setup # cap deploy:cold # cap nginx:start # this may be necessary if it didn't start up properly before