Skip to content

Instantly share code, notes, and snippets.

@paul
Created April 8, 2009 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save paul/91884 to your computer and use it in GitHub Desktop.
Save paul/91884 to your computer and use it in GitHub Desktop.
# Please install the Engine Yard Capistrano gem
# gem install eycap --source http://gems.engineyard.com
require "eycap/recipes"
set :keep_releases, 5
set :application, 'ssbev6docs'
set :repository, 'git@github.com:absperf/ssbe6-docs.git'
set :deploy_to, "/data/#{application}"
set :deploy_via, :export
set :monit_group, "#{application}"
set :scm, :git
# This is the same database name for all environments
set :production_database,'ssbev6docs_production'
set :environment_host, 'localhost'
set :deploy_via, :remote_cache
# uncomment the following to have a database backup done before every migration
# before "deploy:migrate", "db:dump"
# comment out if it gives you trouble. newest net/ssh needs this set.
ssh_options[:paranoid] = false
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
default_run_options[:pty] = true # required for svn+ssh:// andf git:// sometimes
# This will execute the Git revision parsing on the *remote* server rather than locally
set :real_revision, lambda { source.query_revision(revision) { |cmd| capture(cmd) } }
task :SSBE6dev do
role :web, '174.129.221.64'
role :app, '174.129.221.64'
role :db, '174.129.221.64', :primary => true
set :environment_database, Proc.new { production_database }
set :dbuser, 'ssbe'
set :user, 'ssbe'
set :runner, 'ssbe'
end
# TASKS
# Don't change unless you know what you are doing!
after "deploy", "deploy:cleanup"
after "deploy:migrations", "deploy:cleanup"
after "deploy:update_code","deploy:symlink_configs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment