[systemd] Add hungryroot web service

This commit is contained in:
2026-07-28 16:52:46 -04:00
parent a16d6121e5
commit b63bc7b00b

View File

@ -0,0 +1,20 @@
[Unit]
Description=Hungryroot web (Astro/Vite) dev server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/home/powellc/src/github.com/hungryroot/web
Environment=PATH=%h/.volta/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
Environment=VOLTA_HOME=%h/.volta
Environment=DEV_HOST=hungryroot.service
Environment=DEV_PORT=8002
ExecStart=/bin/bash -lc 'cd /home/powellc/src/github.com/hungryroot/web && exec npm run dev'
Restart=on-failure
RestartSec=2
StandardOutput=append:/tmp/hungryroot-web.log
StandardError=inherit
[Install]
WantedBy=default.target