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.
17 lines
363 B
SYSTEMD
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
|