From d315de80fa35c8828a10818559d74b88a31349d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 8 Aug 2024 23:51:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=20env=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=89=A7=E8=A1=8C=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index 1268a2fec..d23eb25bc 100644 --- a/composer.json +++ b/composer.json @@ -23,5 +23,10 @@ "require": { "php": ">=7.1", "zoujingli/think-plugs-admin": "^1.0" + }, + "scripts": { + "post-autoload-dump": [ + "@php -r \"file_exists('.env.example') && !file_exists('.env') && copy('.env.example', '.env');\"" + ] } } \ No newline at end of file