diff --git a/composer.json b/composer.json index 7000a1c6d5..d238d5c589 100644 --- a/composer.json +++ b/composer.json @@ -97,6 +97,9 @@ } }, "scripts": { + "pre-install-cmd": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], @@ -116,6 +119,9 @@ "post-install-cmd": [ "php artisan optimize", "php artisan firefly:instructions install" + ], + "compile": [ + "@php artisan key:generate --force" ] }, "config": {