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