mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-27 06:46:45 +01:00
Fix error at docker run when env is production - Fixes #296
This commit is contained in:
parent
119eca6c7e
commit
1e3cb32bc2
4
docker/entrypoint.sh
vendored
4
docker/entrypoint.sh
vendored
@ -30,11 +30,11 @@ if [ -f /2fauth/installed ]; then
|
||||
INSTALLED_COMMIT="$(cat /2fauth/installed)"
|
||||
if [ "${INSTALLED_COMMIT}" != "${COMMIT}" ]; then
|
||||
echo "Installed commit ${INSTALLED_COMMIT} is different from program commit ${COMMIT}, we are migrating..."
|
||||
php artisan migrate
|
||||
php artisan migrate --force
|
||||
php artisan config:clear
|
||||
fi
|
||||
else
|
||||
php artisan migrate:refresh
|
||||
php artisan migrate:refresh --force
|
||||
php artisan passport:install
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user