dataflow/dataflow.service
Paul Trowbridge 619e83acb6 Add unified deploy.sh and systemd service unit
- Merge setup.sh and deploy.sh into single deploy.sh
- First run (no .env): creates DB user/database, deploys schema +
  functions, builds UI, installs systemd service
- Subsequent runs: optionally change DB target, redeploy functions,
  rebuild UI, restart service
- Add dataflow.service systemd unit for process management
- Remove setup.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 15:53:02 -04:00

16 lines
312 B
Desktop File

[Unit]
Description=Dataflow API Server
After=network.target postgresql.service
[Service]
Type=simple
User=pt
WorkingDirectory=/opt/dataflow
EnvironmentFile=/opt/dataflow/.env
ExecStart=/home/pt/.nvm/versions/node/v24.11.1/bin/node api/server.js
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target