"Bundle" is not found because Bundler is not installed to the RVM ruby you
are using, or perhaps the system Ruby. It's a bundler problem you are
having.

Capistano will *not* use your ~/.bash_login, ~/.profile or similar to load
paths or preferences, Bundler has to be installed (with Ruby) to somewhere
that can be reached using root's default paths, or you should try:

set :bundle, '/path/to/bundle'

and hope that the bundler plugin is sane.

On 11 October 2010 11:29, vanderkerkoff <[email protected]> wrote:

> Hello all
>
> I've got a brand new rails3 app using bundler 1.0.2, ruby 1.9.2-p0 and
> rvm
>
> My RVM is setup as a per user setup, which is the same user that is
> the user in the capistrano deploy script, and the same user that runs/
> owns the web site
>
> I've included in the top of my capistrano script the following
>
> require "bundler/capistrano"
>
> which is meant to run the following command and replace all my patches
> to run the bundle install that were present in rails2.3 and earlier
> versions of bundler
>
> bundle install --gemfile /var/www/rails/lens/releases/20101011091524/
> Gemfile --path /var/www/rails/lens/shared/bundle --deployment --quiet
> --without development test
>
> it won't run though, here's the error
>
> sh: bundle: not found
>
> Logged in as the user on the machine I'm deploying to if I run which
> bundle I get this
>
> /home/username/.rvm/gems/ruby-1.9.2...@rails3/bin/bundle
>
> this section of that line, ruby-1.9.2...@rails3, refers to the ruby
> version, 1.9.2-p0 and the gemset I've created for this application,
> rails3
>
> Im going to post this on the RVM forum as well, see if they have any
> ideas as to what I'm doing wrong, but I thought I'd try this forum as
> well as I'm sure there are people using capistrano in similar
> circumstances and I'd like to know if anyone can the see the silly
> thing I must be doing.
>
> Any help, greatly appreciated.
>
> V
>
>
>
> --
> * 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]<capistrano%[email protected]>For
>  more options, visit this group at
> http://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