Skip to content

Instantly share code, notes, and snippets.

@mpapis
Forked from iewnait/gist:5332536
Last active December 16, 2015 06:28
Show Gist options
  • Save mpapis/5391238 to your computer and use it in GitHub Desktop.
Save mpapis/5391238 to your computer and use it in GitHub Desktop.
set :stages, %w(production sandbox)
set :default_stage, "sandbox"
require 'capistrano/ext/multistage'
set :application, "blogtest"
set :repository, "git@github.com:iewnait/blogtest.git"
default_run_options[:pty] = true
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`
set :deploy_to, "/home/deployer/apps/blogtest"
set :user, "deployer"
set :use_sudo, false
set :rvm_install_with_sudo, true
set :rvm_autolibs_flag, "enable"
set :rvm_ruby_string, "1.9.3@#{application}"
before 'deploy:setup', 'rvm:install_rvm' # install RVM
before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset
require "rvm/capistrano"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment