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