Skip to content

darcy/recipes

Repository files navigation

Small collection of cap recipes.

capify .
git checkout git://github.com:darcy/recipes.git lib/recipes
rm -rf lib/recipes/.git
git submodule add git@github.com:darcy/recipes.git lib/recipes
git submodule init
git submodule update
load('lib/recipes/backup.rb')
load('lib/recipes/certify.rb')
Dir['lib/recipes/*.rb'].each { |plugin| load(plugin) }
# Deploy:
# => cap staging certify deploy
# => cap production certify:force deploy

set :application, "app"
set :repository,  "git@github.com:repo/app.git"

#############################################################
# Servers
#############################################################

task :production do
  set :rails_env, "production"
  set :branch, "production"
  set :certify_branch, "staging"
  set :domain, "127.0.0.1"
  server domain, :app, :web
  role :db, domain, :primary => true
  set :web_domain, "www.example.com"
end

task :staging do
  set :rails_env, "production" #set to staging if you have that setup
  set :branch, "staging"
  set :certify_branch, "origin/master"
  set :domain, "127.0.0.1"
  server domain, :app, :web
  role :db, domain, :primary => true
  set :web_domain, "staging.example.com"
end

About

Collection of capistrano recipes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages