I use system-wide rvm on my staging system. I had to add the following
lines to my deploy.rb capfile.

("app-name" below replaces my actual app name.)


<code>
    # Set path on deployment machine
    rails_path = ['/usr/local/rvm/gems/ruby-1.8.7-p302@app-name-rails3/
bin',
                  '/usr/local/rvm/gems/ruby-1.8.7-p302@global/bin',
                  '/usr/local/rvm/rubies/ruby-1.8.7-p302/bin',
                  '/usr/local/rvm/bin']

    set :app_name_path, rails_path * ":"
    set :default_environment, default_environment.merge({
        'PATH' => "#{app_name_path}:$PATH",
        'RUBY_VERSION' => 'ruby 1.8.7',
        'GEM_HOME'     => '/usr/local/rvm/gems/ruby-1.8.7-p302@app-
name-rails3',
        'GEM_PATH'     => '/usr/local/rvm/gems/ruby-1.8.7-p302@app-
name-rails3:/usr/local/rvm/gems/ruby-1.8.7-p302@global',
        'BUNDLE_PATH'  => '/usr/local/rvm/gems/ruby-1.8.7-p302@app-
name-rails3/bin/'
      })
</code>

On Feb 8, 11:12 am, Levi <[email protected]> wrote:
> it wast the path!  i am using rvm and found out i needed some extra
> code in my deply.rb
> all set now!
>
> On Feb 8, 9:55 am, Donovan Bray <[email protected]> wrote:
>
>
>
>
>
>
>
> > Are you sure bundler is installed on the target and pathed correctly?
>
> > Seehttp://donovanbray.com/bundler-version-100rc5-full-service-capistran
>
> > On Feb 8, 2011, at 9:39 AM, Levi <[email protected]> wrote:
>
> > > im having the same issue, did you ever find the solution?
>
> > > On Dec 19 2010, 9:05 am, paszo <[email protected]> wrote:
> > >> Hallo,
>
> > >> I also added this line to my deploy.rb file but this was not enough.
>
> > >> I got error:
>
> > >> failed: "sh -c \"bundle install --gemfile /home/paszo/public_html/
> > >> blog3_pliki/releases/20101219165927/Gemfile --path /home/paszo/
> > >> public_html/blog3_pliki/shared/bundle --deployment --quiet --without
> > >> development test\"" on myhost
>
> > >> I think there should be more info specified in the deploy.rb file
>
> > >> (For instance where to look for gems or where to write gems if like me
> > >> not have sudo rights on shared hosting)
>
> > >> On 29 Lis, 04:50, Jim Morris <[email protected]> wrote:
>
> > >>> I had to add this to my deploy.rb...
>
> > >>> require 'bundler/capistrano'
>
> > >>> and thenbundlergot run on each deploy
>
> > >>> On Nov 28, 5:20 pm, Gitted <[email protected]> wrote:
>
> > >>>> So far I have done:
>
> > >>>> cap deploy:setup
>
> > >>>> cap deploy:check
>
> > >>>> cap deploy
>
> > >>>> Will calling 'cap deploy' perform a 'bundle install' or is that
> > >>>> something I have to explicitly state in a task?
>
> > > --
> > > * You received this message because you are subscribed to the Google 
> > > Groups "Capistrano" group.
> > > * To post to this group, send email to [email protected]
> > > * To unsubscribe from this group, send email to 
> > > [email protected] For more options, visit this 
> > > group athttp://groups.google.com/group/capistrano?hl=en

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to