fix: make migrations non-fatal in entrypoint to prevent container restart loops
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
idevakk
2026-03-10 00:07:16 +05:30
parent c0a4cd2b45
commit 6fd6b5dc8a

View File

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