Modifying launch of API to use 'sanic' executable. This was done because startup is much faster.

This commit is contained in:
Roland 2024-05-01 18:42:15 -06:00
parent 9ee73af61d
commit 41f3969330
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 16 additions and 63 deletions

View file

@ -5,7 +5,7 @@ PartOf=wrolpi.target
[Service]
Environment=PYTHONUNBUFFERED=1
ExecStart=/opt/wrolpi/venv/bin/python3 -OO /opt/wrolpi/main.py -v api
ExecStart=/opt/wrolpi/venv/bin/sanic main:api_app --host 0.0.0.0 --port 8081
Group=wrolpi
User=wrolpi
WorkingDirectory=/opt/wrolpi/