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:
parent
16dbcf18e2
commit
1d4f644980
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue