#!/bin/sh # Copy public files to shared volume if needed cp -r /var/www/html/public/. /var/www/html/public_shared/ 2>/dev/null || true # Laravel optimizations php artisan config:cache php artisan route:cache php artisan view:cache php artisan migrate --force # Start supervisor to manage nginx and php-fpm supervisord -c /etc/supervisord.conf