fix: 数据库和缓存配置使用env方式

This commit is contained in:
wfg 2024-08-07 17:30:04 +08:00
parent 41e6f233d5
commit 7826e9d8ae

View File

@ -84,6 +84,14 @@
} }
}, },
"scripts": { "scripts": {
"post-install-cmd": "php -r \"file_exists('.env.example') && !file_exists('.env') || copy('.env.example','.env');\"" "post-package-update": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
]
} }
} }