d2000ca6e7
Use release that already contains build files. It requires a specific directories tree but I think it would be fine.
19 lines
389 B
Desktop File
19 lines
389 B
Desktop File
[Unit]
|
|
Description=PeerTube daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Environment=NODE_ENV=production
|
|
Environment=NODE_CONFIG_DIR=/home/peertube/config
|
|
User=peertube
|
|
Group=peertube
|
|
ExecStart=/usr/bin/npm start
|
|
WorkingDirectory=/home/peertube/peertube-latest
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=peertube
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|