I am running Ubuntu 10.04 Lucid, Ruby 1.9.3p125, Ruby on Rails 3.2.2 and RVM 1.10.3. I am trying to properly set the BUNDLE_PATH value related to the RVM “Integration via ‘:default_environment’“.
At this time in my deploy.rb file I have (note the commented BUNDLE_PATH hash key):
set :default_environment, {
'PATH' => "/usr/local/rvm/gems/ruby-1.9.3-p125/bin:/usr/local/rvm/gems/ruby-1.9.3-p125@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p125/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games",
'RUBY_VERSION' => '1.9.3p125',
'GEM_HOME' => "/usr/local/rvm/gems/ruby-1.9.3-p125",
'GEM_PATH' => "/usr/local/rvm/gems/ruby-1.9.3-p125:/usr/local/rvm/gems/ruby-1.9.3-p125@global"
# 'BUNDLE_PATH' => '/path/to/.rvm/gems/ree-1.8.7-2010.01' # If you are using bundler.
}
Since I am using Bundler to manage my gems, I would like to set that value as well as it should be made. What is really BUNDLE_PATH? How can I set that (that is, what value I must consider)?
Please use the first section of integration with capistrano plugin
Also there is integration gem with bundler – I have used both in my example app – https://github.com/mpapis/ad
If you update RVM to head version in your system and on server you can use the new method of reading ruby version from configuration file, start with update:
Then check this line of deploy.rb: https://github.com/mpapis/ad/blob/master/config/deploy.rb#L9
And use one of the new configuration files not needing trusting: https://github.com/mpapis/ad/blob/master/Gemfile
This should automatically select your ruby from
Gemfilecomment, just do not forget to remove.rvmrcas it’s for now selected as the primary format to specify your ruby.