How to start passenger in production environment?

2020-05-18 04:16发布

问题:

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

passenger start -a 0.0.0.0 -p 3000 -d

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

回答1:

passenger start -a 0.0.0.0 -p 3000 -d -e production

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