dr-sandbox/deploy/dr-sandbox-web.service.in
Michael Pilosov 4a4034420d web: systemd user service for uvicorn on :8000 (make prod)
Adds `make prod` (no --reload) as the service entrypoint, mirrors the
worker unit under deploy/, and splits the makefile service targets into
`worker-*` / `web-*` with the install scaffolding factored into a macro.
2026-04-23 20:04:31 -06:00

17 lines
363 B
SYSTEMD

[Unit]
Description=dr-sandbox web app (uvicorn, port 8000)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=@ROOT@
ExecStart=@ROOT@/.venv/bin/python -m uvicorn app.web.main:app --host 0.0.0.0 --port 8000
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=default.target