From 6fd6b5dc8af76034d0d22e1b6517a4e26062334b Mon Sep 17 00:00:00 2001 From: idevakk <219866223+idevakk@users.noreply.github.com> Date: Tue, 10 Mar 2026 00:07:16 +0530 Subject: [PATCH] fix: make migrations non-fatal in entrypoint to prevent container restart loops --- docker/entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index eb2f6fd..509b505 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -23,11 +23,11 @@ php artisan view:cache php artisan event:cache # Create storage symlink -php artisan storage:link +php artisan storage:link --force -# Run migrations automatically +# Run migrations (non-fatal — don't crash the container if a migration fails) echo "Running migrations..." -php artisan migrate --force +php artisan migrate --force || echo "WARNING: Migrations failed. The container will continue starting. Please check the migration error above and fix manually." echo "Initialization complete. Starting Supervisord..." # Execute supervisord in the foreground