Donovan, I appreciate that you took the time to answer him, but I'd thank you not to reward cross-posters.
I follow the capistrano tag on SO, and an RSS feed of the google search results, and Google notifications for the common search terms, and so much effort is wasted on duplicate effort from people cross-posting, it's quite frustrating. Benjamin appears to be a freelancer, and especially when time literally is money, I can appreciate the desire for a speedy answer, but that is still no justification for cross-posting. To be clear, finally, cross-posting with disclosure is fine, in my book; such as "the question worked better with decent code samples, so I posted it to SO, it's a little quiet over there, so I'm sharing a link here" would be absolutely fine. - Lee On Monday, May 21, 2012 at 4:50 PM, Donovan Bray wrote: > 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] > (mailto:[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 (http://mydomain.net)"] > > [mydomain.net (http://mydomain.net)] executing command > > ** [out :: mydomain.net (http://mydomain.net)] (in > > /home/mydomain/public_html/site_folders/rails/releases/20120521025150) > > ** [out :: mydomain.net (http://mydomain.net)] Could not find rake-0.9.2 > > in any of the sources > > ** [out :: mydomain.net (http://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 (http://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] > > (mailto:[email protected]) > > * To unsubscribe from this group, send email to > > [email protected] > > (mailto:[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] > (mailto:[email protected]) > * To unsubscribe from this group, send email to > [email protected] > (mailto:[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
