summaryrefslogtreecommitdiff
path: root/deploy/food.service
diff options
context:
space:
mode:
authorCaine <caine@jihakuz.xyz>2026-04-02 23:08:43 +0100
committerCaine <caine@jihakuz.xyz>2026-04-02 23:08:43 +0100
commitc4ca4348edc5c4fd6cc36e9833fbb9c697f3bf9d (patch)
tree54b06b47d639e15f7860b3366db40bdd648e9885 /deploy/food.service
parent963ca2dd5549843e992af718053d08c10d5ec843 (diff)
Phase 4: HTMX frontend with dark palette
- 4 pages: Pantry, Recipes, Shopping List, Cook Log - HTMX-powered: add/delete pantry items, toggle shopping, generate smart list - Custom 13-colour palette from Lospec (dark bg, yellow accent) - Mobile-responsive - Whitenoise for static files in production - All routes under /app/ - API (/api/) stays internal, frontend (/app/) for browser use
Diffstat (limited to 'deploy/food.service')
-rw-r--r--deploy/food.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/deploy/food.service b/deploy/food.service
new file mode 100644
index 0000000..0a2a097
--- /dev/null
+++ b/deploy/food.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Food App (Meal Planning API)
+After=network.target
+
+[Service]
+Type=notify
+User=openclaw
+Group=openclaw
+WorkingDirectory=/var/lib/food
+Environment="PATH=/var/lib/food/venv/bin:/usr/bin"
+Environment="DJANGO_SETTINGS_MODULE=food_project.settings"
+ExecStart=/var/lib/food/venv/bin/gunicorn food_project.wsgi:application \
+ --bind 127.0.0.1:8042 \
+ --workers 2 \
+ --timeout 30 \
+ --access-logfile - \
+ --error-logfile -
+Restart=on-failure
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target