sensors is separate API with td
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
[Unit]
|
||||
Description=Yggdrasil Sensor API
|
||||
Description=Yggdrasil Main App
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=mateusz
|
||||
Group=mateusz
|
||||
WorkingDirectory=/home/mateusz/prog/yggdrasil/server
|
||||
ExecStart=/home/mateusz/prog/yggdrasil/server/.venv/bin/gunicorn -c gunicorn.conf.py "app:create_app()"
|
||||
# Override when the sensors API is not on localhost:8001:
|
||||
#Environment=SENSORS_API_URL=http://localhost:8001
|
||||
#Environment=USERS_DB_PATH=/home/mateusz/prog/yggdrasil/server/main_app.db
|
||||
ExecStart=/home/mateusz/prog/yggdrasil/server/run-prod.sh main 8000
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user