From 8fc3908e0bf0fbe8c5256ded66a614b5b9579347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 14 Aug 2024 10:30:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AE=80=E5=8C=96=20.env=20=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 5 ----- plugin/think-plugs-static/composer.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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",