diff --git a/composer.json b/composer.json index 535f5a86b..d9825189f 100644 --- a/composer.json +++ b/composer.json @@ -82,10 +82,5 @@ "allow-plugins": { "zoujingli/think-install": true } - }, - "scripts": { - "post-autoload-dump": [ - "@php -r \"file_exists('.env.example') && !file_exists('.env') && copy('.env.example', '.env');\"" - ] } } diff --git a/plugin/think-plugs-static/composer.json b/plugin/think-plugs-static/composer.json index 103d41740..3e31a88e1 100644 --- a/plugin/think-plugs-static/composer.json +++ b/plugin/think-plugs-static/composer.json @@ -17,7 +17,7 @@ "plugin": { "copy": { "stc/think": "!think", - "stc/.env.example": "!.env.example", + "stc/.env.example": ".env", "stc/public/index.php": "!public/index.php", "stc/public/static/plugs": "!public/static/plugs", "stc/public/static/theme": "!public/static/theme",