mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
docker: Fix upgrades (#6680)
Until now, the Docker image was not performing actions that are necessary for an upgrade completion. That is considered an anti-pattern. See https://snipe-it.readme.io/docs/upgrading for more information.
This commit is contained in:
parent
cd1ef1d316
commit
9183de578d
|
@ -47,5 +47,9 @@ then
|
||||||
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
php artisan migrate --force
|
||||||
|
php artisan config:clear
|
||||||
|
php artisan config:cache
|
||||||
|
|
||||||
. /etc/apache2/envvars
|
. /etc/apache2/envvars
|
||||||
exec apache2 -DNO_DETACH < /dev/null
|
exec apache2 -DNO_DETACH < /dev/null
|
||||||
|
|
|
@ -44,5 +44,10 @@ if [ ! -f "/var/www/html/database/migrations/*create_oauth*" ]
|
||||||
then
|
then
|
||||||
cp -a /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
cp -a /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
php artisan migrate --force
|
||||||
|
php artisan config:clear
|
||||||
|
php artisan config:cache
|
||||||
|
|
||||||
export APACHE_LOG_DIR=/var/log/apache2
|
export APACHE_LOG_DIR=/var/log/apache2
|
||||||
exec httpd -DNO_DETACH < /dev/null
|
exec httpd -DNO_DETACH < /dev/null
|
||||||
|
|
Loading…
Reference in a new issue