Run Python App with Gunicorn (systemd)

A systemd unit that keeps a Gunicorn-served Python app running in production.

Creates a systemd service file to run a Python WSGI app (Django/Flask) under Gunicorn. Gunicorn forks multiple worker processes to handle concurrent requests.

When you need this: When deploying a Django or Flask application to production.

Variables

Command


        
4 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.