fix: 优化 env 配置文件处理脚本

This commit is contained in:
邹景立 2024-08-08 23:49:13 +08:00
parent 7d4b57e064
commit 21aad56260
2 changed files with 2 additions and 2 deletions

View File

@ -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');\""
]
}
}

View File

@ -8,6 +8,6 @@ prefix=
[redis]
host=127.0.0.1
password=""
port=6379
password=
select=0