diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-15 17:56:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-15 18:07:08 +0100 |
commit | d2000ca6e7fa77758d4f811e4a8af11108d2655d (patch) | |
tree | d40860d17f33eacd33f79780fab08ecb7e6e46a7 /support/systemd/peertube.service | |
parent | 53733ec2abd4b7588c85cdd37824b0082b46f188 (diff) | |
download | PeerTube-d2000ca6e7fa77758d4f811e4a8af11108d2655d.tar.gz PeerTube-d2000ca6e7fa77758d4f811e4a8af11108d2655d.tar.zst PeerTube-d2000ca6e7fa77758d4f811e4a8af11108d2655d.zip |
Update production guide
Use release that already contains build files. It requires a specific
directories tree but I think it would be fine.
Diffstat (limited to 'support/systemd/peertube.service')
-rw-r--r-- | support/systemd/peertube.service | 7 |
1 files changed, 4 insertions, 3 deletions
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 | |||
5 | [Service] | 5 | [Service] |
6 | Type=simple | 6 | Type=simple |
7 | Environment=NODE_ENV=production | 7 | Environment=NODE_ENV=production |
8 | User=myuser | 8 | Environment=NODE_CONFIG_DIR=/home/peertube/config |
9 | Group=myuser | 9 | User=peertube |
10 | Group=peertube | ||
10 | ExecStart=/usr/bin/npm start | 11 | ExecStart=/usr/bin/npm start |
11 | WorkingDirectory=/path/to/peertube | 12 | WorkingDirectory=/home/peertube/peertube-latest |
12 | StandardOutput=syslog | 13 | StandardOutput=syslog |
13 | StandardError=syslog | 14 | StandardError=syslog |
14 | SyslogIdentifier=peertube | 15 | SyslogIdentifier=peertube |