From b5e89c196ad5956d0c08f7b2907d2642bf8c4f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 3 Mar 2024 12:57:49 +0100 Subject: [PATCH] Fix workdir for composer --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 4f1ef32..68b88f0 100644 --- a/scripts/install +++ b/scripts/install @@ -39,7 +39,7 @@ chown -R "$app:www-data" "$install_dir" ynh_script_progression --message="Installing $app with Composer..." --weight=30 pushd "$install_dir/sources" - ynh_install_composer --install_args="--no-dev" + ynh_install_composer --install_args="--no-dev" --workdir="$install_dir/sources" ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install --pure-lockfile --prod ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn run buildall diff --git a/scripts/upgrade b/scripts/upgrade index bf8ec02..8abde41 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,7 +46,7 @@ chown -R "$app:www-data" "$install_dir" ynh_script_progression --message="Building $app with Composer..." --weight=30 pushd "$install_dir/sources" - ynh_install_composer --install_args="--no-dev" + ynh_install_composer --install_args="--no-dev" --workdir="$install_dir/sources" ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install --pure-lockfile --prod ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn run buildall