I am deploying a rails application on VPS with CentOS. I installed the passenger with gem install passenger. And I used to install nginx rvmsudo passenger-install-nginx-module.
In the nginx configuration file, I installed:
server {
listen 80;
server_name my-ip-address;
location / {
root /home/deploy/repos/application-name/public;
passenger_enabled on;
rails_env production;
}
...
}
When I execute sudo service nginx status, I get the following:
nginx (pid 21015 21014) is running...
which shows that nginx is running.
But I get This webpage is not availablein the browser.
Even I get the same result when I install rails server in development mode with rails sand try to check in browsermy-ip-address:3000
Can anyone help with what could be the problem?
When I run the command passenger-config restart-app, the result is:
Phusion Passenger is currently not serving any applications
I need a suggestion on whether this is a problem with nginx or passenger?
One more question -
, nginx , " nginx"?
Update:
passenger start -p 3000 -d -e production, . , passenger-status, , Phusion Passenger is currently not serving any applications, :
Version : 5.0.21
Date : 2016-01-16 10:42:42 +0530
Instance: feOajf7V (nginx/1.8.0 Phusion_Passenger/5.0.21)
----------- General information -----------
Max pool size : 6
App groups : 1
Processes : 1
Requests in top-level queue : 0
----------- Application groups -----------
/home/deploy/repos/application-name/public (production):
App root: /home/deploy/repos/application-name
Requests in queue: 0
* PID: 22003 Sessions: 0 Processed: 0 Uptime: 4m 17s
CPU: 0% Memory : 36M Last used: 4m 17s ago
passenger-config restart-app, :
Please select the application to restart.
‣ /home/deploy/repos/application-name/public (production)
Cancel
, ? webpage not available .