From 34025d7e9d12d0cc25a635fc68a9b18b953e548f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 27 Mar 2021 14:54:36 +0100 Subject: [PATCH] Fix --- conf/systemd.service | 4 +++- scripts/install | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index bba8e38..52a6375 100755 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -9,8 +9,10 @@ Group=__APP__ WorkingDirectory=__FINALPATH__ 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 +ExecStart=__YNH_NODE_LOAD_PATH__ __FINALPATH__ mynewwiki --listen port=__PORT__ #authenticated-user-header=basic Restart=always [Install] WantedBy=multi-user.target + + diff --git a/scripts/install b/scripts/install index ab199c3..74b7fa3 100755 --- a/scripts/install +++ b/scripts/install @@ -98,7 +98,8 @@ ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2 pushd $final_path ynh_use_nodejs - $ynh_node_load_PATH tiddlywiki mynewwiki --init server + ynh_npm install -g tiddlywiki + tiddlywiki mynewwiki --init server popd #=================================================