From b946a43556c4dce88fa00043c9d59c5a76e0a154 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:41:58 +0100 Subject: [PATCH] Downgrade node. --- conf/exporter.service | 5 +++++ scripts/_common.sh | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/conf/exporter.service b/conf/exporter.service index 89079e1..a06fa8a 100644 --- a/conf/exporter.service +++ b/conf/exporter.service @@ -12,6 +12,11 @@ WorkingDirectory=__INSTALL_DIR__/exporter ExecStart=__YNH_NODE__ --env-file=.env app.js Restart=always Environment=__YNH_NODE_LOAD_PATH__ +Environment=NODE_ENV=production +Environment=PENPOT_HTTP_SERVER_PORT=__PORT_EXPORTER__ +Environment=PENPOT_HTTP_SERVER_host="127.0.0.1" +Environment=PENPOT_PUBLIC_URI="https://__DOMAIN__" +Environment=PENPOT_REDIS_URI="redis://127.0.0.1:6379/__REDIS_DB__" StandardOutput=append:/var/log/__APP__/__APP__-exporter.log StandardError=inherit Restart=on-failure diff --git a/scripts/_common.sh b/scripts/_common.sh index f65835f..bb05d95 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,8 +4,8 @@ # COMMON VARIABLES #================================================= -nodejs_version=20 -current_hash=cc5b1c950be5b1b290ea76e3419057dffaeab797 +nodejs_version=18 +current_hash="1eaf7b2b44a9e8928a70d9a882f4372602700695" #================================================= # PERSONAL HELPERS