From 6111fd726c92d24d0e4aab1cc904565722d4b4cd Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 9 Jan 2023 20:36:09 +0100 Subject: [PATCH] check for new migrations --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 1737939..5f92f49 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -29,6 +29,7 @@ gosu www-data php artisan view:cache echo "++++ Check for needed migrations... ++++" # check for migrations gosu www-data php artisan migrate:status | grep No && migrations=yes || migrations=no +gosu www-data php artisan migrate:status | grep Pending && migrations=yes || migrations=no if [ $migrations = "yes" ]; then gosu www-data php artisan migrate --force