Fix error at docker run when env is production - Fixes #296

This commit is contained in:
Bubka 2024-02-19 11:00:38 +01:00
parent 119eca6c7e
commit 1e3cb32bc2
1 changed files with 2 additions and 2 deletions

View File

@ -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