Fix .env loading for standalone repo structure

This commit is contained in:
clxud
2026-07-02 02:22:42 +00:00
parent 8bbe86759c
commit 01277eec82
3 changed files with 39 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=tssbot backend API service
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=100
StartLimitBurst=10
[Service]
Type=simple
WorkingDirectory=%h/tssbot.web-backend
ExecStart=%h/tssbot.web-backend/backend/target/release/tssbot-backend
Restart=on-failure
RestartSec=200ms
RestartSteps=10
RestartMaxDelaySec=10s
TimeoutStopSec=10
[Install]
WantedBy=default.target