-
-
Save yock/bbd6f59932cf33b1f3b6 to your computer and use it in GitHub Desktop.
Minimal Capistrano 2.x Multistage deploy configuration
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
load 'deploy' | |
load 'config/deploy' |
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
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 |
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
set :deploy_to, '/path/to/local' | |
server 'localhost', :app, :web, :db, primary: true | |
set :branch, 'master' |
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
set :deploy_to, '/path/to/production' | |
server 'example.com', :app, :web, :db, primary: true | |
set :branch, 'production' |
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
set :deploy_to, '/path/to/staging' | |
server 'staging.example.com', :app, :web, :db, primary: true | |
set :branch, 'production' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Except that in capistrano 3.x :repository has changed to set :repo_url