Skip to content

Commit

Permalink
fix: 优化 env 配置文件处理脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Aug 8, 2024
1 parent 7d4b57e commit 21aad56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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');\""
]
}
}
2 changes: 1 addition & 1 deletion plugin/think-plugs-static/stc/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ prefix=

[redis]
host=127.0.0.1
password=""
port=6379
password=
select=0

0 comments on commit 21aad56

Please sign in to comment.