From 6937a47a2b336914ca738ae002cd2d7232bd5052 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 27 Mar 2021 12:15:14 +0100 Subject: [PATCH] fix --- conf/systemd.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 8de904f..bba8e38 100755 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,10 +7,10 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__ -Environment=PATH=/usr/bin:/usr/local/bin:__NODEJS_PATH__ -ExecStart=__NODEJS_PATH__/node __FINALPATH__/tiddlywiki mynewwiki --listen #port=__PORT__ authenticated-user-header=basic +Environment='NODE_ENV=production' +Environment="__YNH_NODE_LOAD_PATH__" +ExecStart=__YNH_NODE_LOAD_PATH__ __FINALPATH__ __FINALPATH__/mynewwiki --server --listen #port=__PORT__ authenticated-user-header=basic Restart=always -Environment=NODE_ENV=production [Install] WantedBy=multi-user.target