Skip to content

Commit

Permalink
Merge pull request #3 from borschphp/new-random-keygen
Browse files Browse the repository at this point in the history
Upd: switch to openssl rand command line
  • Loading branch information
debuss committed Nov 24, 2022
2 parents 567bf0f + 2099a24 commit 5fdf370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"scripts": {
"post-create-project-cmd": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"BORSCH_TEMP_KEYGEN=`date +%s | sha256sum | base64 | head -c 32`;sed -i \"s/APP_KEY=/APP_KEY=$BORSCH_TEMP_KEYGEN/g\" .env"
"BORSCH_TEMP_KEYGEN=`openssl rand -base64 32`;sed -i \"s/APP_KEY=/APP_KEY=$BORSCH_TEMP_KEYGEN/g\" .env"
],
"serve": "php -S 0.0.0.0:8080 -t ./public/ ./public/index.php",
"optimize": "composer install --prefer-dist --optimize-autoloader --no-dev",
Expand Down

0 comments on commit 5fdf370

Please sign in to comment.