On Fri, May 1, 2009 at 7:24 AM, Mr_Tibs <[email protected]> wrote:
>
> Hi,
>
> I'm deploying my merb app with Capistrano. The :user for capistrano
> ("ladmin") is different than the user which should be running the app
> ("mongrel"). Why is the following command not running merb?
>
> sudo -u mongrel bin/merb -a mongrel -p 5000 -c 5 -d -e production
>
> It does create the main pid file, but the process is not launched.
>
> I made sure all files under log (merb.main.log, production.log,
> merb.main.pid) all belong to "mongrel". Do any other files need to
> belong to the user which is running the merb app?
>
> Thanks,
> Tiberiu
>
Hi,
You can tell merb to run as a different user with the -u flag. Also group
with the -G flag. Mongrel is the default adapter so you don't need the -a
sudo bin/merb -u mongrel -p 5000 -c 5 -d -e production
should do the trick.
Cheers
Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---