diff options
| author | Tyler Mercier <tylermercier@gmail.com> | 2013-07-22 17:06:06 -0600 |
|---|---|---|
| committer | Tyler Mercier <tylermercier@gmail.com> | 2013-07-22 17:06:06 -0600 |
| commit | 78fb284baff9dbe3b02825868ffb81c1d35d8093 (patch) | |
| tree | 55f5be0a489c29061193ef920412b6f941bcaf5a /config | |
| parent | a78d9585c7b7c3255d7e96a110daae21b073eeb0 (diff) | |
add rvm capistrano gem and configuration
Diffstat (limited to 'config')
| -rw-r--r-- | config/deploy.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 2ccadc2..3e07894 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,4 +1,5 @@ require "bundler/capistrano" +require "rvm/capistrano" load "config/recipes/base" load "config/recipes/nginx" @@ -26,9 +27,14 @@ set :scm, "git" set :branch, "master" set :repository, "git@github.com:madebyuppercut/parley.git" +set :rvm_ruby_string, :local # use the same ruby as used locally for deployment + default_run_options[:pty] = true # password prompt ssh_options[:forward_agent] = true # no deploy key for github +before 'deploy', 'rvm:install_rvm' # update RVM +before 'deploy', 'rvm:install_ruby' # install Ruby and create gemset (both if missing) + after "deploy", "deploy:cleanup" # keep only the last 5 releases # Instructions |
