Ensure app key is generated if missing
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 50s

This commit is contained in:
vickytechkey 2026-09-08 20:52:45 +05:30
parent d4c5ae2cf2
commit 5fec3336c3

View file

@ -77,7 +77,10 @@ jobs:
# Setup Laravel environment file and key
if [ ! -f .env ]; then
cp .env.example .env
php artisan key:generate
fi
if grep -q "^APP_KEY=$" .env; then
php artisan key:generate --force
fi
# Ensure web server owns the files after composer finishes writing caches