diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-19 18:39:59 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-19 18:39:59 -0700 |
| commit | 68b4f52829cdb2d6951faf8037fb002083ebd0a5 (patch) | |
| tree | 0242b2956ea325fd68b718d4337a219bf5146ae4 /systemd/prismv2-frontend.service | |
| parent | 0a40178b40b4c939b00f03f114777ffff2ed0652 (diff) | |
Update production deployment templates and docs
Diffstat (limited to 'systemd/prismv2-frontend.service')
| -rw-r--r-- | systemd/prismv2-frontend.service | 12 |
1 files changed, 7 insertions, 5 deletions
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 |
