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

Update upgrade

This commit is contained in:
ericgaspar 2021-01-28 18:32:14 +01:00
parent ec4cf47c85
commit aa9a98ca6d
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -159,14 +159,15 @@ ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\"
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=4 ynh_script_progression --message="Upgrading source files..." --weight=4
pushd $final_path
( cd $final_path && php$phpversion artisan migrate -n --force ) php artisan migrate -n #--force
( cd $final_path && php$phpversion artisan config:clear -n ) #php$phpversion artisan config:clear -n
( cd $final_path && php$phpversion artisan config:cache -n ) #php$phpversion artisan config:cache -n
popd
fi fi
#================================================= #=================================================
# BUILDING # SETUP APPLICATION CONFIG
#================================================= #=================================================
ynh_script_progression --message="Building..." ynh_script_progression --message="Building..."