1
0
Fork 0
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:
Salamandar 2024-03-24 20:33:28 +01:00
parent 7572dc5f1e
commit 68cab1761b
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_script_progression --message="Installing Yarn dependencies..." --weight=10
pushd "$final_path/live"
pushd "$install_dir/live"
ynh_use_nodejs
corepack enable
yarn install

View file

@ -104,7 +104,7 @@ pushd "$install_dir/live"
ynh_use_nodejs
corepack enable
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
fi
ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile