Skip to content

Instantly share code, notes, and snippets.

@viccherubini
Last active December 26, 2015 23:59
Show Gist options
  • Save viccherubini/7234217 to your computer and use it in GitHub Desktop.
Save viccherubini/7234217 to your computer and use it in GitHub Desktop.
Advanced Web Applications Using Symfony Capistrano deploy.rb configuration script.
# Deployment remotes
set :stages, %w(production staging)
set :default_stage, 'staging'
require 'capistrano/ext/multistage'
# Repo options
set :application, 'MajorAuth'
set :repository, '[email protected]:brightmarch/major-auth.git'
set :scm, :git
# Github options
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
# Deployment options
set :branch, ENV['BRANCH'] || 'master'
set :use_sudo, false
set :user, 'deploy'
set :keep_releases, 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment