From 0662f33b9671d06458b8db9d36f34d7d54adc542 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 17 May 2023 06:55:58 +0200 Subject: [PATCH] Update systemd.service --- conf/systemd.service | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index a9b5b91..dd49422 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,9 +6,11 @@ After=network.target Type=simple User=__APP__ Group=__APP__ -WorkingDirectory=__INSTALL_DIR__/ +Environment=NODE_PORT=__PORT__ +WorkingDirectory=__FINALPATH__ Environment=PATH=__ENV_PATH__ -ExecStart=__YNH_NPM__ run next start -p __PORT__ +Environment=NODE_ENV=production +ExecStart=__YNH_NPM__ run start -p __PORT__ # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these