#!/bin/sh set -e echo "Storage symlink..." php artisan storage:link || true echo "Optimize cache..." php artisan optimize:clear php artisan config:cache php artisan route:cache php artisan view:cache echo "Running migrations..." php artisan migrate --force || true # Pass hand off to supervisor exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf