Ensure app key is generated if missing
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 50s
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 50s
This commit is contained in:
parent
d4c5ae2cf2
commit
5fec3336c3
1 changed files with 4 additions and 1 deletions
|
|
@ -77,7 +77,10 @@ jobs:
|
||||||
# Setup Laravel environment file and key
|
# Setup Laravel environment file and key
|
||||||
if [ ! -f .env ]; then
|
if [ ! -f .env ]; then
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
php artisan key:generate
|
fi
|
||||||
|
|
||||||
|
if grep -q "^APP_KEY=$" .env; then
|
||||||
|
php artisan key:generate --force
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure web server owns the files after composer finishes writing caches
|
# Ensure web server owns the files after composer finishes writing caches
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue