From 89d9fed1280d219cbd5abaad3439a2f769a4d90f Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 30 Sep 2022 08:38:53 +0700 Subject: [PATCH] Change to build only www --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index d314f93..6056f7d 100755 --- a/scripts/install +++ b/scripts/install @@ -129,8 +129,10 @@ chown $app:$app "$final_path/apps/www/.env" # BUILD YARN DEPENDENCIES #================================================= -pushd "$final_path" +pushd "$final_path/apps/www/" ynh_use_nodejs + ynh_script_progression --message="Cleaning cache... " --weight=3 + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1 ynh_script_progression --message="Fetching Yarn dev dependencies... This can be very long, be patient !" --weight=18 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --network-timeout 1000000000 2>&1 ynh_script_progression --message="Cleaning cache... " --weight=3