Skip to content

Instantly share code, notes, and snippets.

@yock

yock/Capfile Secret

Last active December 29, 2015 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yock/bbd6f59932cf33b1f3b6 to your computer and use it in GitHub Desktop.
Save yock/bbd6f59932cf33b1f3b6 to your computer and use it in GitHub Desktop.
Minimal Capistrano 2.x Multistage deploy configuration
load 'deploy'
load 'config/deploy'
set :stages, %w(production staging local)
set :default_stage, 'local'
require 'capistrano/ext/multistage'
set :application, "Multistage Sbx"
set :repository, "git://..."
set :scm, :git
set :deploy_via, :remote_cache
set :deploy_to, '/path/to/local'
server 'localhost', :app, :web, :db, primary: true
set :branch, 'master'
set :deploy_to, '/path/to/production'
server 'example.com', :app, :web, :db, primary: true
set :branch, 'production'
set :deploy_to, '/path/to/staging'
server 'staging.example.com', :app, :web, :db, primary: true
set :branch, 'production'
@korabh
Copy link

korabh commented Feb 13, 2014

Except that in capistrano 3.x :repository has changed to set :repo_url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment