You can tell passenger to start the application in production environment with following command on shell by going to the app folder first. I wanted to use Passenger for Redmine app.
Log into shell and go to app directory and type the following command:
root@server [/home/redmine]# passenger start -a 0.0.0.0 -p 3000 -d -e production
In the above command, 3000 is the port where server listens to the requests, and 0.0.0.0 tells the server to listen to all IP addresses. If you remove it, you will only be able to access it from localhost.
Login to shell and type following command:
root@server [/home/redmine]# passenger stop -p 3000
Serving Passenger over SSL
And if you want to serve your Redmine or any Rails application over both HTTP and HTTPS in production.
Unlike Passenger/Apache, this does not require any complicated Apache conf setup.
1. Get the ssl certificate and ssl certificate key for the domain and upload them to the server
2. Start passenger as follows:
root@server [/home/redmine]# passenger start --ssl --ssl-certificate your-domain.tld.crt --ssl-certificate-key your-domain.tld.key --ssl-port 443 -d -e production
3. The above command assumes that you have placed both .key and .crt files in the Redmine directory. You can also provide the path to their location of they are placed on some other directory like /root/your-domain.tld.crt /root/your-domain.tld.key
Hope that helps.