1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/decidim_ynh.git synced 2024-09-03 18:26:00 +02:00

Fix upgrade

This commit is contained in:
yalh76 2022-05-06 08:22:17 +02:00
parent 87dc238f4f
commit 00fd512245

View file

@ -164,6 +164,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
pushd "$final_path/live" pushd "$final_path/live"
ynh_secure_remove --file="$final_path/live/Gemfile.lock" ynh_secure_remove --file="$final_path/live/Gemfile.lock"
bundle install
bundle update decidim bundle update decidim
ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails decidim:upgrade ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails decidim:upgrade
ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails db:migrate ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails db:migrate