I’ve created a custom service to run Gunicorn, a simple hello world app to get this running, and have a functioning server block to proxy (though I’m not worried about that at this point). The service is reporting as active (running) and everything seems to be working fine. But the server is not responding to ipaddress:port. When I run Gunicorn outside of the venv it runs fine. I’ve already allowed the port in selinux, and have other proxies and services running successfully (node/PM2) in other server blocks. Theres no errors to report, it just will not serve the app. This is my first time using Gunicorn so I’m likely missing something stupid but with the time I’ve spent on this today I could have rewritten the whole backend in Node and been done with it lol.

The app:

r/webdev - Help! Can't get Gunicorn to serve flask app on Nginx/Centos.

The service:

r/webdev - Help! Can't get Gunicorn to serve flask app on Nginx/Centos.

The server block:

r/webdev - Help! Can't get Gunicorn to serve flask app on Nginx/Centos.

Service status:

r/webdev - Help! Can't get Gunicorn to serve flask app on Nginx/Centos.



Source link

Write A Comment