Still seeing the Welcome to nginx! screen after nginx configuration
I have set up and deployed an application using Capistrano and set up the server and ngnix config file, however, I'm still seeing the `Welcome to ngnix` welcome screen.
Here is what I have in the `/etc/nginx/sites-enabled/default` file
Here is what I have in the `/etc/nginx/sites-enabled/default` file
server { listen 80; listen [::]:80 ipv6only=on; server_name IP; passenger_enabled on; rails_env production; root /home/poladmin/poetry-out-loud-v2/current/public/; # redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }
But as I said when I go to the server IP all I see is
https://i.gyazo.com/f925d16bdc933b8f90767be17cc46f2b.png
I have followed the https://gorails.com/deploy/ubuntu/16.04 tutorial, I am using puma locally and passenger in production, the app is successfully being deployed to the server but I'm not seeing it live.
P.S. I have ran sudo service nginx restart