fix: 简化 .env 管理机制

This commit is contained in:
邹景立 2024-08-14 10:30:27 +08:00
parent e7ec32ad07
commit 8fc3908e0b
2 changed files with 1 additions and 6 deletions

View File

@ -82,10 +82,5 @@
"allow-plugins": {
"zoujingli/think-install": true
}
},
"scripts": {
"post-autoload-dump": [
"@php -r \"file_exists('.env.example') && !file_exists('.env') && copy('.env.example', '.env');\""
]
}
}

View File

@ -17,7 +17,7 @@
"plugin": {
"copy": {
"stc/think": "!think",
"stc/.env.example": "!.env.example",
"stc/.env.example": ".env",
"stc/public/index.php": "!public/index.php",
"stc/public/static/plugs": "!public/static/plugs",
"stc/public/static/theme": "!public/static/theme",