1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Clean yarn cache on install/upgrade to save disk space

This commit is contained in:
Nicolas Frandeboeuf 2023-01-10 08:18:05 +00:00
parent 16dbcf18e2
commit 1d4f644980
2 changed files with 7 additions and 1 deletions

View file

@ -148,6 +148,9 @@ pushd "$final_path"
pushd "ghost/admin"
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn build --environment/production # well, except for the admin
popd
# Clean yarn cache (which takes a lot of disk space)
rm ./.cache/yarn/* -rf
popd
#=================================================

View file

@ -193,9 +193,12 @@ then
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn install --non-interactive
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn add knex-migrator ember-cli --dev --ignore-workspace-root-check --non-interactive
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn setup
pushd "ghost/admin"
pushd "ghost/admin"
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH HOME="$final_path" yarn build --environment/production
popd
# Clean yarn cache (which takes a lot of disk space)
rm ./.cache/yarn/* -rf
popd
fi