fix: make migrations non-fatal in entrypoint to prevent container restart loops
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user