summaryrefslogtreecommitdiff
path: root/systemd/prismv2-frontend.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/prismv2-frontend.service')
-rw-r--r--systemd/prismv2-frontend.service12
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