From c8363b2d7c965594c3cd93ec9b83a673cdfdc78d Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 21 Jan 2024 12:49:02 +0100 Subject: [PATCH] use proper YNH NODE --- conf/systemd.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 5633bbe..d825c0a 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,10 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -ExecStart=WITH_DOCKER=no just cmd __INSTALL_DIR__/_build/prod/rel/bonfire/bin/bonfire start daemon +Environment=NODE_ENV=production +Environment=NODE_CONFIG_DIR=__INSTALL_DIR__/config +Environment="__YNH_NODE_LOAD_PATH__" +ExecStart=WITH_DOCKER=no __YNH_NODE__ just cmd __INSTALL_DIR__/_build/prod/rel/bonfire/bin/bonfire start daemon StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit