diff --git a/Install-as-a-daemon.md b/Install-as-a-daemon.md index 803cfaf..dfed505 100644 --- a/Install-as-a-daemon.md +++ b/Install-as-a-daemon.md @@ -23,16 +23,17 @@ Description=seasonedShows API [Service] WorkingDirectory=/opt/seasonedShows/seasoned_api -ExecStart=/usr/local/bin/node src/webserver/server.js +ExecStart=/usr/bin/yarn start Restart=always # Restart service after 10 seconds if node service crashes RestartSec=10 StandardOutput=syslog StandardError=syslog SyslogIdentifier=seasonedShows + User=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] WantedBy=multi-user.target