Forum: Ruby on Rails Starting RoR application in production

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F9d1541f1251f2da6ff87c8896d1ba66?d=identicon&s=25 t5in9tao (Guest)
on 2007-01-26 11:45

I have read and complet this very nice tutorial (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 ?

8b22ad683842861ba91f68d5d32954db?d=identicon&s=25 Jason Norris (Guest)
on 2007-01-26 14:23
(Received via mailing list)
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
Read some tutorials about it, then give it a try.

F9d1541f1251f2da6ff87c8896d1ba66?d=identicon&s=25 t5in9tao (Guest)
on 2007-01-27 00:07
Thanks for help Jason ! :o)
This topic is locked and can not be replied to.