[5.1] Move copying .env.example to post-root-package-install
post-create-project-cmd is executed only after post-install-cmd and this could cause issue on the first installation (via composer create-project) where environment is not prepared hence `php artisan optimize` would generate `compiled.php`. Signed-off-by: crynobone <crynobone@gmail.com>
This commit is contained in:
parent
9b6d5f4237
commit
2ac993f8d3
|
@ -35,8 +35,10 @@
|
|||
"php artisan clear-compiled",
|
||||
"php artisan optimize"
|
||||
],
|
||||
"post-root-package-install": [
|
||||
"php -r \"copy('.env.example', '.env');\""
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"php -r \"copy('.env.example', '.env');\"",
|
||||
"php artisan key:generate"
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue