Fix systemd service working directory for module imports
This commit is contained in:
@@ -4,11 +4,10 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/opt/camera-viewer
|
WorkingDirectory=/opt/camera-viewer/backend
|
||||||
ExecStart=/opt/camera-viewer/venv/bin/uvicorn backend.main:app --host 0.0.0.0 --port 8080
|
ExecStart=/opt/camera-viewer/venv/bin/uvicorn main:app --host 0.0.0.0 --port 8080
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
Environment=PYTHONPATH=/opt/camera-viewer
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user