Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

upgrade to rvm-capistrano gem

  • Loading branch information...
commit 6598314b0f80fd666d692210f413f6f6fc4ba339 1 parent c678367
Michal Papis authored March 26, 2012
1  Gemfile
@@ -27,4 +27,5 @@ group :development do
27 27
   gem 'capistrano'
28 28
   gem 'capistrano-unicorn'
29 29
   gem 'capistrano-file_db'
  30
+  gem 'rvm-capistrano'
30 31
 end
3  Gemfile.lock
@@ -101,6 +101,8 @@ GEM
101 101
     rake (0.9.2.2)
102 102
     rdoc (3.12)
103 103
       json (~> 1.4)
  104
+    rvm-capistrano (1.0.1)
  105
+      capistrano (>= 2.0.0)
104 106
     sass (3.1.15)
105 107
     sass-rails (3.2.4)
106 108
       railties (~> 3.2.0)
@@ -138,6 +140,7 @@ DEPENDENCIES
138 140
   coffee-rails (~> 3.2.1)
139 141
   jquery-rails
140 142
   rails (= 3.2.2)
  143
+  rvm-capistrano
141 144
   sass-rails (~> 3.2.3)
142 145
   sqlite3
143 146
   therubyracer
7  config/deploy.rb
@@ -7,9 +7,7 @@
7 7
 set :repository,  "git://github.com/mpapis/ad.git"
8 8
 set :keep_releases, 5
9 9
 
10  
-set :rvm_ruby_string, `rvm current`
11  
-set :rvm_type, :user
12  
-set :rvm_install_type, :head # before rvm 1.11.0 gets released
  10
+set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"")
13 11
 set :bundle_without,  [:development]
14 12
 set :unicorn_pid, "#{shared_path}/pids/unicorn.pid"
15 13
 
@@ -20,8 +18,7 @@
20 18
 before 'deploy:setup',   'rvm:install_ruby'
21 19
 after  'deploy',         'deploy:cleanup'
22 20
 
23  
-$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
24  
-require "rvm/capistrano"
  21
+require "rvm-capistrano"
25 22
 require "bundler/capistrano"
26 23
 require "capistrano-unicorn"
27 24
 require "capistrano-file_db"

0 notes on commit 6598314

Please sign in to comment.
Something went wrong with that request. Please try again.