Capistrano rvm local not on server bundle issue

Hi,

I have rvm running locally and capistrano 2.9.0 installed on my mac,
im using ruby ree-1.8.7-2010.02. I can deploy fine which deploys the
latest version of the code from git, i am not using rvm on my staging
server.

I want the bundler to install the gems so i have added require
‘bundler/capistrano’ to the top of my deploy.rb file.

When i deploy now i get the following error:

I have googled around and most of the solutions are for servers
running rvm which my server is not.

If i ssh via root or the deploy user and run which bundle i get the
correct location /opt/ruby/bin/bundle

Anyone got any suggestions?

JB

On Jan 12, 2012, at 3:39 AM, johnnybutler7 wrote:

When i deploy now i get the following error:
I have googled around and most of the solutions are for servers
running rvm which my server is not.

If i ssh via root or the deploy user and run which bundle i get the
correct location /opt/ruby/bin/bundle

Anyone got any suggestions?


(as root)
ln -s /opt/ruby/bin/* /usr/local/bin/

obviously you have added the path ‘/opt/ruby/bin’ to your path so when
you have a shell, it works but running a script, it doesn’t. Creating
the symbolic links per above will fix that.

Craig