Some checks failed
Build & Push Docker Image to Registry / build (release) Failing after 26s
19 lines
469 B
Bash
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
|