summaryrefslogtreecommitdiff
path: root/deploy/food.service
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/food.service')
-rw-r--r--deploy/food.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/food.service b/deploy/food.service
index 1211bce..d9cade8 100644
--- a/deploy/food.service
+++ b/deploy/food.service
@@ -9,6 +9,9 @@ Group=openclaw
WorkingDirectory=/var/lib/food
Environment="PATH=/var/lib/food/.venv/bin:/usr/bin"
Environment="DJANGO_SETTINGS_MODULE=food_project.settings"
+# Secrets/config (DJANGO_SECRET_KEY, optional DJANGO_DEBUG) live here, not in git.
+# The leading '-' makes it optional so the service still starts if absent.
+EnvironmentFile=-/var/lib/food/.env
ExecStart=/var/lib/food/.venv/bin/gunicorn food_project.wsgi:application \
--bind 127.0.0.1:8042 \
--workers 2 \