Use the full path to rake; your env is different when sshing. I think it's the .profile doesn't get sourced or it's the bashrc. In any case I've found it better to always use full paths to executables.
On May 20, 2012, at 8:07 PM, Benjamin Moses Lieb <[email protected]> wrote: > I'm getting this error when running this capistrano task (my own - cap > deploy:show_pointers): > > * executing `deploy:show_pointers' > * executing "cd /home/mydomain/public_html/site_folders/rails/current; rake > app:show_pointers" > servers: ["mydomain.net"] > [mydomain.net] executing command > ** [out :: mydomain.net] (in > /home/mydomain/public_html/site_folders/rails/releases/20120521025150) > ** [out :: mydomain.net] Could not find rake-0.9.2 in any of the sources > ** [out :: mydomain.net] Try running `bundle install`. > command finished in 1584ms > failed: "sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; > rake app:show_pointers'" on mydomain.net > However when I run > > sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; rake > app:show_pointers > manually from the same dir that capistrano logs into, it works. I have > capistrano set to NOT USE sudo, so that shouldn't be the issue, but it sounds > like it might be, since the above command fails with sudo. I think this is a > user issue, or maybe an environment var issue. Or I'm not sure what. > > Any suggestsions. This is a task that is already a rake task, but it will > help me not to have to log into the server every time I run it (and about 10 > more like it). > > Appreciate any help on this. > > -- > * 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 -- * 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
