diff --git a/conf/systemd.service b/conf/systemd.service index d4463f4..73c9634 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,10 +7,10 @@ After=network-online.target Type=simple User=__APP__ Group=__APP__ -WorkingDirectory=__INSTALL_DIR__/ +WorkingDirectory=__INSTALL_DIR__/terraforming-mars EnvironmentFile=__INSTALL_DIR__/.env Environment=NODE_ENV=production -ExecStart=__INSTALL_DIR__/terraforming-mars/__YNH_NPM__ run start +ExecStart=npm run start StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit Restart=on-failure