diff --git a/conf/systemd.service b/conf/systemd.service index 92031a1..76e912b 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,11 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment=PATH=__YNH_NODE_LOAD_PATH__ +Environment="NODE_ENV=production" ExecStart=yarn start +Restart=always +RestartSec=5 StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit