Commit 2ac993f8 authored by crynobone's avatar crynobone

[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: 's avatarcrynobone <crynobone@gmail.com>
parent 9b6d5f42
......@@ -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"
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment