From b441d0f6bcbe032f5d3467f5d2ac89b5167c25be Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 26 Dec 2023 11:13:54 +0100 Subject: [PATCH 1/6] Raise timeout duration for Yarn https://forum.yunohost.org/t/can-not-install-peertube/27740/7 --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index 3896502..5f90f2f 100644 --- a/scripts/install +++ b/scripts/install @@ -163,6 +163,7 @@ ynh_script_progression --message="Building Yarn dependencies..." pushd "$final_path" ynh_use_nodejs + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean popd From 132f4afd7805893c5e0fd4d481b2089a6cb05ff1 Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 26 Dec 2023 15:15:10 +0100 Subject: [PATCH 2/6] fix spacing --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index c81ccb3..6cf9a01 100644 --- a/scripts/install +++ b/scripts/install @@ -164,7 +164,7 @@ ynh_script_progression --message="Building Yarn dependencies..." pushd "$final_path" ynh_use_nodejs npm install -g npm - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean popd From 6aeed38df541d8f638ecc9089f8195ff1d71162b Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 27 Dec 2023 15:02:28 +0100 Subject: [PATCH 3/6] =?UTF-8?q?trying=20something=20with=20NODE=5FENV/CONF?= =?UTF-8?q?IG=C2=A0DIR=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 6cf9a01..e303d66 100644 --- a/scripts/install +++ b/scripts/install @@ -164,9 +164,9 @@ ynh_script_progression --message="Building Yarn dependencies..." pushd "$final_path" ynh_use_nodejs npm install -g npm - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production yarn config set network-timeout 300000 + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production yarn install --production --pure-lockfile + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production yarn cache clean popd #================================================= From c4fa371bfcb875d4e7615ad98468bf955dbfe23a Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 27 Dec 2023 15:04:41 +0100 Subject: [PATCH 4/6] revert commit on wrong branch --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index e303d66..6cf9a01 100644 --- a/scripts/install +++ b/scripts/install @@ -164,9 +164,9 @@ ynh_script_progression --message="Building Yarn dependencies..." pushd "$final_path" ynh_use_nodejs npm install -g npm - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production yarn config set network-timeout 300000 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production yarn install --production --pure-lockfile - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production yarn cache clean + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean popd #================================================= From f6eff70b3ffae7e1a2d10cf8acf60588a15b789d Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 27 Dec 2023 17:02:36 +0100 Subject: [PATCH 5/6] localhost doesn't work And is less reliable (could be IPV6) --- conf/production.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/production.yaml b/conf/production.yaml index 28731b5..b6bf194 100644 --- a/conf/production.yaml +++ b/conf/production.yaml @@ -1,5 +1,5 @@ listen: - hostname: 'localhost' + hostname: '127.0.0.1' port: __PORT__ # Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL) From 2b637ec674e56ed7fc1ecee4af27309f3ae73d43 Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 27 Dec 2023 17:04:21 +0100 Subject: [PATCH 6/6] reverts https://github.com/YunoHost-Apps/peertube_ynh/pull/397 as it's a different PR --- scripts/install | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install b/scripts/install index 6cf9a01..e53392d 100644 --- a/scripts/install +++ b/scripts/install @@ -164,7 +164,6 @@ ynh_script_progression --message="Building Yarn dependencies..." pushd "$final_path" ynh_use_nodejs npm install -g npm - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean popd