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