From d2000ca6e7fa77758d4f811e4a8af11108d2655d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 Jan 2018 17:56:58 +0100 Subject: Update production guide Use release that already contains build files. It requires a specific directories tree but I think it would be fine. --- support/systemd/peertube.service | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'support/systemd') diff --git a/support/systemd/peertube.service b/support/systemd/peertube.service index b9d01f235..03ead9fbd 100644 --- a/support/systemd/peertube.service +++ b/support/systemd/peertube.service @@ -5,10 +5,11 @@ After=network.target [Service] Type=simple Environment=NODE_ENV=production -User=myuser -Group=myuser +Environment=NODE_CONFIG_DIR=/home/peertube/config +User=peertube +Group=peertube ExecStart=/usr/bin/npm start -WorkingDirectory=/path/to/peertube +WorkingDirectory=/home/peertube/peertube-latest StandardOutput=syslog StandardError=syslog SyslogIdentifier=peertube -- cgit v1.2.3