Created
April 8, 2009 17:50
-
-
Save paul/91884 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, '[email protected]: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