Skip to content

Commit 7b9af03

Browse files
committed
Generate APP_SECRET on create-project
1 parent 7545f8f commit 7b9af03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
"importmap:install": "symfony-cmd",
9797
"sass:build": "symfony-cmd"
9898
},
99+
"post-create-project-cmd": [
100+
"@php -r \"echo 'APP_SECRET='.bin2hex(random_bytes(16)).PHP_EOL;\" > .env.local"
101+
],
99102
"post-install-cmd": [
100103
"@auto-scripts"
101104
],

0 commit comments

Comments
 (0)