Skip to content

Commit 513cefc

Browse files
committed
Add JWT_PASSPHRASE to .env.local instead of .env
1 parent e99498d commit 513cefc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bootstrap

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ php bin/composer install -o --no-scripts --no-suggest
55
php bin/composer init-example
66
php bin/console assets:install --symlink --relative
77
php bin/console mapbender:database:init -v
8+
if ! grep -q "JWT_PASSPHRASE=" .env.local; then
9+
echo "JWT_PASSPHRASE='$(openssl rand -base64 32)'" >> .env.local
10+
fi
811
php bin/console lexik:jwt:generate-keypair
9-
sed -i "s/^JWT_PASSPHRASE=<change_me>/JWT_PASSPHRASE=$(openssl rand -base64 32)/" application/.env
1012
php bin/composer run post-install-cmd
1113
echo Bootstrap finished!
1214
echo If you want to run the builtin development server, install Symfony CLI from https://symfony.com/download then run:

0 commit comments

Comments
 (0)