Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Deploy script
set :application, "self"
set :repository, ""
set :branch, "master"
set :deploy_via, :copy
set :migrate_target, :current
set :rails_env, "production"
set :deploy_to, "/home/deployer/apps/#{application}"
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "" # Your HTTP server, Apache/etc
role :app, "" # This may be the same as your `Web` server
role :db, "", :primary => true # This is where Rails migrations will run
# if you want to clean up old releases on each deploy uncomment this:
after "deploy:restart", "deploy:cleanup"
set :user, "deployer"
set :use_sudo, false
# Set up environment for RBenv
set :default_environment, {
'PATH' => "/home/#{user}/.rbenv/shims:/home/#{user}/.rbenv/bin:$PATH"
require 'bundler/capistrano'
require 'simple-capistrano-unicorn'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment