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
|
php artisan event:cache
|
||||||
|
|
||||||
# Create storage symlink
|
# 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..."
|
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..."
|
echo "Initialization complete. Starting Supervisord..."
|
||||||
# Execute supervisord in the foreground
|
# Execute supervisord in the foreground
|
||||||
|
|||||||
Reference in New Issue
Block a user