Skip to content

Instantly share code, notes, and snippets.

@7hunderbird
Last active October 11, 2015 23:08
Show Gist options
  • Save 7hunderbird/3934387 to your computer and use it in GitHub Desktop.
Save 7hunderbird/3934387 to your computer and use it in GitHub Desktop.
Act 1
require "bundler/capistrano"
server "192.168.33.10", :web, :app, :db, primary: true
set :application, "awesome"
set :user, "vagrant"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :scm, "git"
set :repository, "[email protected]:7hunderbird/#{application}.git"
set :branch, "master"
set :default_run_options, {:pty => true}
set :ssh_options, {:forward_agent => true, keys: ['~/.vagrant.d/insecure_private_key']}
after "deploy", "deploy:cleanup" # keep only the last 5 releases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment