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