mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Fix restore, upgrade
This commit is contained in:
parent
7572dc5f1e
commit
68cab1761b
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
|
|
||||||
ynh_script_progression --message="Installing Yarn dependencies..." --weight=10
|
ynh_script_progression --message="Installing Yarn dependencies..." --weight=10
|
||||||
|
|
||||||
pushd "$final_path/live"
|
pushd "$install_dir/live"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
corepack enable
|
corepack enable
|
||||||
yarn install
|
yarn install
|
||||||
|
|
|
@ -104,7 +104,7 @@ pushd "$install_dir/live"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
corepack enable
|
corepack enable
|
||||||
yarn install
|
yarn install
|
||||||
if [ -d "$final_path/live/public/assets" ]; then
|
if [ -d "$install_dir/live/public/assets" ]; then
|
||||||
ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:clean
|
ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:clean
|
||||||
fi
|
fi
|
||||||
ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile
|
ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile
|
||||||
|
|
Loading…
Reference in a new issue