From 0a6fa2a6566a6d20b9cd587f1d188869971871c5 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Tue, 19 May 2026 00:39:59 -0700 Subject: systemd --- systemd/prismv2-frontend.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 systemd/prismv2-frontend.service (limited to 'systemd/prismv2-frontend.service') 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 -- cgit v1.3-2-g0d8e