From 705a39830caf3a2c08857d73f054261b385f30de Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 7 Feb 2022 22:07:46 +0100 Subject: [PATCH] Update install --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 25a33a3..2b0044b 100644 --- a/scripts/install +++ b/scripts/install @@ -125,7 +125,7 @@ ynh_script_progression --message="Installing Composer..." --weight=10 ynh_secure_remove --file="$final_path/composer.lock" -ynh_install_composer --install_args="--ignore-platform-reqs" +ynh_install_composer --install_args="--no-dev" chown -R $app "$final_path/.composer" chmod 777 -R "$final_path" @@ -140,11 +140,11 @@ pushd "$final_path" ynh_exec_warn_less ynh_exec_as $app php$phpversion composer.phar install --prefer-dist --no-progress --no-dev ynh_script_progression --message="Yarn install..." - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npm install brotli + #ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npm install brotli 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 - ynh_secure_remove node_modules - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean + #ynh_secure_remove node_modules + #ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean secret_key=$(ynh_string_random --length=137) ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key