docker-laravel-base/entrypoint.sh
Javier Feliz d73d0234e1
Some checks failed
Build & Push Docker Image to Registry / build (release) Failing after 26s
Initial commit
2025-07-16 12:14:43 -04:00

19 lines
469 B
Bash

#!/bin/sh
set -e
php /app/artisan migrate --force
php /app/artisan storage:link
# Generate only if no key is set in env or config
if [ -z "$APP_KEY" ]; then
echo "Generating APP_KEY..."
php /app/artisan key:generate --force
fi
php /app/artisan config:clear
php /app/artisan config:cache
php /app/artisan view:cache
# exec php /app/artisan octane:frankenphp
exec php /app/artisan octane:start --server=frankenphp --host=0.0.0.0 --admin-port=2019 --port=8000