[Mongrel] Mongrel_rails restart and sudo

Tom Brice tom at onidle.com
Fri Jun 16 11:47:07 EDT 2006

On 6/16/06 10:29 AM, Alison Rowland  wrote:

> two lines, like so:
> run "cd #{current_path}"
> sudo "mongrel_rails restart"

Thanks Alison.

I though I tried this but I just rechecked.  Problem is capistrano.  When I
try this the cd executes but doesn't "hold".  This means that my
mongrel_rails restart command is executed in my home dir (not my
RAILS_ROOT).  It doesn't find the PID file so it fails.

Any other ideas?


More information about the Mongrel-users mailing list