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