Updated Install as a daemon (markdown)

2018-04-19 21:26:23 +02:00
parent 4ef5a64bd9
commit afac277081

@@ -23,16 +23,17 @@ Description=seasonedShows API
[Service] [Service]
WorkingDirectory=/opt/seasonedShows/seasoned_api WorkingDirectory=/opt/seasonedShows/seasoned_api
ExecStart=/usr/local/bin/node src/webserver/server.js ExecStart=/usr/bin/yarn start
Restart=always Restart=always
# Restart service after 10 seconds if node service crashes # Restart service after 10 seconds if node service crashes
RestartSec=10 RestartSec=10
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog
SyslogIdentifier=seasonedShows SyslogIdentifier=seasonedShows
User=seasoned User=seasoned
Group=seasoned Group=seasoned
Environment=NODE_ENV=production SEASONED_CONFIG=conf/development.json NODE_PATH=. Environment=NODE_ENV=production PROD=true SEASONED_CONFIG=conf/development.json NODE_PATH=.
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target