Take the 2-minute tour ×

I'm starting the Rails 3 application with the following command:

passenger start -a -p 3000 -d

but how do I tell passenger to start the application in production environment?

share|improve this question
add comment

1 Answer

up vote 15 down vote accepted
passenger start -a -p 3000 -d -e production

Side note: always check the help, passenger start --help would have told you the same.

share|improve this answer
why this -a 0.0.0. ?? pls reply. –  shajin Sep 19 '11 at 13:37
This tells the server to listen on all IP addresses. If you remove it, you will only be able to access it from localhost. –  Benoit Garret Sep 19 '11 at 13:48
:D Thanks... Benoit Garret –  shajin Sep 22 '11 at 23:07
@BenoitGarret It is running as daemon process how can i stop it? –  Prabhakaran Oct 24 '13 at 18:42
When you start passenger as a daemon, it will tell you the location of the PID file. Simply kill the process with that pid like this: sudo kill $(cat path/to/pidfile.pid) –  James Watkins Dec 6 '13 at 6:50
add comment

Your Answer


