First of all, the -d flag causes the server to run in the background.
Which is what you want, only you need to use the kill command to stop
it. Depending what distro you''re on, you need to do something a little
different to get the service to start up with the machine. First, you
can copy config/lighttpd.conf to /etc/lighttpd/lighttpd.conf. For
production, you need to edit it. At least change the number of min_procs
and max_procs to a slightly higher number than "1". Change the
environment from development to production. Then on Redhat or Fedora(or
CentOS), for instance, if you installed from RPM, you could type #
chkconfig --levels 35 lighttpd on
and that would cause lighttpd to start up automatically with the
machine. This varies by distro as does the default location of
lighttpd.conf.
Read some tutorials about it, then give it a try.
Jason
t5in9tao wrote:> Hi,
>
> I have read and complet this very nice tutorial
> http://www.brainspl.at/rails_stack.html (without Postfix) and it''s
> working perfectly.
>
> But when I start my RoR web server (Lighty), I must always execute this
> command :
> # ruby script/server
>
> ...and I can''t do anything in my shell. And if I exit my shell,
the
> server go down, such as when we do Ctrl + C.
>
> So now, I would like to starting my RoR server with my project
> automatically and on the 80 number port (in production mode).
>
> What can I do for that ?
>
> Thanks
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---