From 21aad562609df2933592617b1889096efad6e53b 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:49:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20env=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=A4=84=E7=90=86=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- plugin/think-plugs-static/stc/.env.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9598a7245..535f5a86b 100644 --- a/composer.json +++ b/composer.json @@ -85,7 +85,7 @@ }, "scripts": { "post-autoload-dump": [ - "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + "@php -r \"file_exists('.env.example') && !file_exists('.env') && copy('.env.example', '.env');\"" ] } } diff --git a/plugin/think-plugs-static/stc/.env.example b/plugin/think-plugs-static/stc/.env.example index fb98fbfcd..21f0116f2 100644 --- a/plugin/think-plugs-static/stc/.env.example +++ b/plugin/think-plugs-static/stc/.env.example @@ -8,6 +8,6 @@ prefix= [redis] host=127.0.0.1 -password="" port=6379 +password= select=0