Running Gunicorn — Gunicorn 20.1.0 documentation
docs.gunicorn.org › en › stableAs a server runner, Gunicorn can serve your application using the commands from your framework, such as pserve or gearbox. To use Gunicorn with these commands, specify it as a server in your configuration file: [server:main] use = egg:gunicorn#main host = 127.0.0.1 port = 8080 workers = 3. This approach is the quickest way to get started with ...
Custom Application — Gunicorn 20.1.0 documentation
docs.gunicorn.org › en › stable# Custom parameters $ python gunicorn.app.wsgiapp exampleapi:app --bind = 0.0.0.0:8081 --workers = 4 # Using a config file $ python gunicorn.app.wsgiapp exampleapi:app -c config.py Note for those using PEX: use -c gunicorn as your entry at build time, and your compiled app should work with the entry point passed to it at run time.