diff options
Diffstat (limited to 'systemd/prismv2-frontend.service')
| -rw-r--r-- | systemd/prismv2-frontend.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/systemd/prismv2-frontend.service b/systemd/prismv2-frontend.service new file mode 100644 index 0000000..8e71997 --- /dev/null +++ b/systemd/prismv2-frontend.service @@ -0,0 +1,17 @@ +[Unit] +Description=Prism v2 Frontend (Next.js) +After=network.target prismv2-backend.service +Wants=prismv2-backend.service + +[Service] +Type=simple +User=tyler +WorkingDirectory=/home/tyler/Work/prism-v2/frontend +Environment=NEXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8001 +Environment=NODE_ENV=development +ExecStart=/usr/bin/npm run dev -- --hostname 127.0.0.1 --port 3001 +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target prismv2.target |
