mirror of
https://github.com/YunoHost-Apps/invoiceninja5_ynh.git
synced 2024-09-03 19:26:23 +02:00
fix upgrade
This commit is contained in:
parent
1eb2f50a9d
commit
5cd1f84e1c
1 changed files with 11 additions and 7 deletions
|
@ -131,17 +131,21 @@ fi
|
||||||
ynh_script_progression --message="Upgrading the database..."
|
ynh_script_progression --message="Upgrading the database..."
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
# Put the application into maintenance mode
|
# Clear caches
|
||||||
php$phpversion artisan down --no-interaction --verbose
|
# https://github.com/invoiceninja/invoiceninja/issues/7397
|
||||||
|
rm -fr bootstrap/cache/*
|
||||||
# Optimize the framework for better performance
|
rm -fr storage/framework/cache/*
|
||||||
php$phpversion artisan optimize --no-interaction --verbose
|
rm -fr storage/framework/sessions/*
|
||||||
|
|
||||||
# Run the database migrations
|
# Run the database migrations
|
||||||
php$phpversion artisan migrate --force --no-interaction --verbose
|
php$phpversion artisan migrate --force --no-interaction --verbose
|
||||||
|
|
||||||
# Bring the application out of maintenance mode
|
# Optimize the framework for better performance
|
||||||
php$phpversion artisan up --no-interaction --verbose
|
php$phpversion artisan optimize --no-interaction --verbose
|
||||||
|
|
||||||
|
# clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377)
|
||||||
|
php$phpversion artisan view:clear
|
||||||
|
php$phpversion artisan cache:clear
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue