From 2ac993f8d369c0ca367accc93714ad960995f91e Mon Sep 17 00:00:00 2001 From: crynobone Date: Mon, 1 Jun 2015 21:41:48 +0800 Subject: [PATCH] [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 --- composer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 57eea924..af053454 100644 --- a/composer.json +++ b/composer.json @@ -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" ] },