Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# Bundler Integration
require 'bundler/capistrano'
# Application Settings
set :application, "youstack"
set :user, "deploy"
set :password, "FANCYpants"
set :deploy_to, "/home/#{user}/#{application}"
set :rails_env, "production"
set :use_sudo, false
set :keep_releases, 5
# Git Settings
set :scm, :git
set :branch, "master"
set :repository, ""
set :deploy_via, :remote_cache
# Uses local instead of remote server keys, good for github ssh key deploy.
ssh_options[:forward_agent] = true
# Server Roles
role :web, ""
role :app, ""
role :db, "", :primary => true
# Passenger Deploy Reconfigure
namespace :deploy do
desc "Restart passenger process"
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
[:start, :stop].each do |t|
desc "#{t} does nothing for passenger"
task t, :roles => :app do ; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment