Rewrite start, stop and restart tasks for works with mongrel and use
mongrel_cluster.yml.
This will solve the problem (without spawner script), example:
namespace :deploy do
desc "Modified start task for work ONLY with mongrel cluster"
task :start, :roles => :app do
run "mongrel_rails cluster::start -C
#{deploy_to}/current/config/mongrel_cluster.yml"
end
... # same stuff for stop and restart
end
If you had latest mongrel you can use --clean parameter too (clean pid
files).
LeeRoy escribió:
> Everything is in the title
> ... but I'll explain.
>
> I use my rails application in production 1 month ago, but I install
> capistrano now.
> My problem is when I try to start with "cap deploy:start". I have not
> error message but, on the server, mongrel process have a short life.
> And when I compare the actual ps with old one I see user and group
> options are not define.
>
> I trought to change script/spin like it, but it doesn't change
> anything
>
> /path/current/script/process/spawner \
> mongrel \
> --user=apache-user \
> --group=apache-group \
> --environment=production \
> --instances=3 \
> --address=127.0.0.1 \
> --port=8000
>
> It the reason why i ask "how to configure user and group in script/
> spin".
>
> Thank you for reading
>
> >
>
>
--
Rafael Garcia Ortega
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---
begin:vcard
fn;quoted-printable:Rafael Garc=C3=ADa Ortega
n;quoted-printable:Garc=C3=ADa Ortega;Rafael
org:ASPgems S.L.
email;internet:[EMAIL PROTECTED]
tel;work:692686533
x-mozilla-html:FALSE
url:http://www.aspgems.com
version:2.1
end:vcard