From 68b4f52829cdb2d6951faf8037fb002083ebd0a5 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Tue, 19 May 2026 18:39:59 -0700 Subject: Update production deployment templates and docs --- systemd/prismv2-frontend.service | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'systemd/prismv2-frontend.service') diff --git a/systemd/prismv2-frontend.service b/systemd/prismv2-frontend.service index f50dd1e..5dec3fb 100644 --- a/systemd/prismv2-frontend.service +++ b/systemd/prismv2-frontend.service @@ -5,12 +5,14 @@ Wants=prismv2-backend.service [Service] Type=simple -User=tyler -WorkingDirectory=/home/tyler/Work/prism-v2/frontend -Environment=NODE_ENV=development -ExecStart=/usr/bin/npm run dev -- --hostname 127.0.0.1 --port 3001 +User=www-data +WorkingDirectory=/var/www/prism-v2/frontend +Environment=NODE_ENV=production +Environment=HOME=/var/www/prism-v2/frontend +Environment=NPM_CONFIG_CACHE=/var/www/prism-v2/frontend/.npm +ExecStart=/usr/bin/npm run start -- --hostname 127.0.0.1 --port 3001 Restart=on-failure RestartSec=5 [Install] -WantedBy=multi-user.target prismv2.target +WantedBy=multi-user.target -- cgit v1.3-2-g0d8e