feat: cd
CI / 🧪 Tests Laravel (push) Successful in 1m57s
CI / 🐳 Build & Push Image (push) Successful in 1m34s

This commit is contained in:
2026-07-16 16:08:18 +02:00
parent 3ed951b506
commit 573718b38f
4 changed files with 49 additions and 11 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
set -eu
cd /app
# Allow Docker Compose services such as Horizon and the scheduler to override
# the default FrankenPHP process with their own command.
if [ "$#" -gt 0 ]; then
exec "$@"
fi
echo "Preparing Laravel..."
php artisan storage:link --force --no-interaction
php artisan migrate --force --no-interaction
php artisan optimize --no-interaction
echo "Starting Laravel Octane with FrankenPHP..."
exec php artisan octane:frankenphp \
--host=0.0.0.0 \
--port="${OCTANE_PORT:-80}" \
--admin-host=127.0.0.1 \
--admin-port="${OCTANE_ADMIN_PORT:-2019}" \
--workers="${OCTANE_WORKERS:-auto}" \
--max-requests="${OCTANE_MAX_REQUESTS:-500}" \
--no-interaction