Right this works.
Very odd.
It seems to be something to do with the way passenger runs Rails. I
have a user 'developer' that does the installs and owns the webistrano
directory, but when I 'su developer' and 'which ruby' I get the
correct path. Passenger should run the application as the owner of the
directory. i.e. 'developer'
I also tried using 'env ruby' in the deployment.rb which fails...
I have this:
PATH=$PATH:$HOME/bin:/usr/local/bin
export PATH
at the bottom of /etc/profile.
Ruby is in /usr/local/bin
The really odd thing is that if I print out the variables at time of
execution (i.e. %x[set]) i get an empty string...
At least I have a workaround by hardcoding the path in deployment.rb.
Best,
-Adam