From 34e2cccb3c9907cf127c1edc0aee9b7b0da3aea7 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 23 Sep 2021 21:25:39 +0200 Subject: [PATCH] Fixes --- conf/.env | 4 ++-- conf/systemd.service | 2 +- scripts/install | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/.env b/conf/.env index c44ad86..da540cf 100644 --- a/conf/.env +++ b/conf/.env @@ -18,7 +18,7 @@ UTILS_SECRET=7cbd5fbf647a8f85f06560c6dad74d2eee21fd4e1889f91dabb7dd873c7428be # For production point these at your databases, in development the default # should work out of the box. -DATABASE_URL=postgres://__DB_USER__:__DB_PWD__@localhost:5432/__DB_NAME__ +DATABASE_URL=postgres://__DB_NAME__:__DB_PWD__@localhost:5432/__DB_NAME__ # Uncomment this to disable SSL for connecting to Postgres PGSSLMODE=disable REDIS_URL=redis://localhost:6379 @@ -153,4 +153,4 @@ SMTP_SECURE=true # The default interface language. See translate.getoutline.com for a list of # available language codes and their rough percentage translated. -DEFAULT_LANGUAGE=en_US \ No newline at end of file +DEFAULT_LANGUAGE=en_US diff --git a/conf/systemd.service b/conf/systemd.service index 8a55bee..787da88 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ Environment="NODE_ENV=production" -ExecStart=__FINALPATH__/script +Environment="__YNH_NODE_LOAD_PATH__" ExecStart=__YNH_NPM__ start StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/scripts/install b/scripts/install index f442180..8ca9c52 100755 --- a/scripts/install +++ b/scripts/install @@ -25,7 +25,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=$YNH_APP_ARG_PATH +path_url="/" #$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE slackkey=$YNH_APP_ARG_SLACKKEY