Skip to content

Instantly share code, notes, and snippets.

@7hunderbird
Created October 14, 2010 04:10
Show Gist options
  • Save 7hunderbird/625562 to your computer and use it in GitHub Desktop.
Save 7hunderbird/625562 to your computer and use it in GitHub Desktop.
# Bundler Integration
# http://github.com/carlhuda/bundler/blob/master/lib/bundler/capistrano.rb
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, "[email protected]:filmprog/youstack.git"
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, "173.230.157.182"
role :app, "173.230.157.182"
role :db, "173.230.157.182", :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"
end
[:start, :stop].each do |t|
desc "#{t} does nothing for passenger"
task t, :roles => :app do ; end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment