Hello,
I'm trying to deploy Flask on Replit, and would like to use gunicorn instead of the built-in Flask webserver. Does anyone know how to use guni
BaconErie Found a somewhat working solution:
This assumes you already have a Flask app and flask installed
Install gunicorn using the "Packages" in Replit or do pip install gunicorn in the shell
Run gunicorn --bind 0.0.0.0:5000 main:app in the shell. Replace main with the name of the Python file with your flask app.
This should load your website. However, I don't know how to install nginx as a reverse proxy for gunicorn on Replit, and having a reverse proxy is recommended with gunicorn, so it may be b2 years ago