Skip to content

Commit

Permalink
Merge pull request #11512 from nanaya/dev-init-key
Browse files Browse the repository at this point in the history
More reliable app key init
  • Loading branch information
notbakaneko authored Sep 27, 2024
2 parents 9368487 + 2adc7a6 commit 2107c9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docker/development/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ _run_dusk() {
docker compose run --rm -e APP_ENV=dusk.local php "$@"
}

genkey=0
if [ ! -f .env ]; then
echo "Copying default env file"
cp .env.example .env
genkey=1
fi

if [ -n "${GITHUB_TOKEN:-}" ]; then
Expand All @@ -37,7 +35,7 @@ _run composer install

_run artisan dusk:chrome-driver

if [ "$genkey" = 1 ]; then
if ! grep -q '^APP_KEY=.' .env; then
echo "Generating app key"
_run artisan key:generate
fi
Expand Down

0 comments on commit 2107c9f

Please sign in to comment.