Systemd und Gunicorn erfordern eine wsgi Datei von einer Art als letztes arg zu ExecStart
: http://docs.gunicorn.org/en/latest/deploy.html?highlight=ExecStart#systemdWie konfiguriert man ExecStart für Gunicorn ohne WSGI?
Mit Django, das in dem Hauptmodul war als wsgi.py
:
ExecStart=/home/admin/django/bin/gunicorn --config /home/admin/src/gunicorn.py --bind unix:/tmp/api.sock myapp.wsgi
aber diese Datei offensichtlich nicht existieren bei der Verwendung von Sanic und uvloop (ich glaube, das neue Protokoll heißt ASGI). Ich habe versucht, es für app.py
Substitution die wenig überraschend nicht funktioniert hat:
ExecStart=/home/admin/sanic/bin/gunicorn --config /home/admin/src/gunicorn.py --bind unix:/tmp/api.sock myapp.app
Wie soll dieser Parameter konfiguriert werden, wenn Sanic mit?