chore: 针对ThinkPHP 6.x 系列,支持自定义.env 文件加载

This commit is contained in:
2025-11-18 18:35:05 +08:00
parent 4654bca6c3
commit 7ad78f1ee6
17 changed files with 81 additions and 3729 deletions

25
src/.env.production Normal file
View File

@@ -0,0 +1,25 @@
APP_DEBUG = false
APP_TRACE = false
[APP]
DEFAULT_TIMEZONE = Asia/Shanghai
ENV_MODE = production
[LANG]
default_lang = zh-cn
[DATABASE]
TYPE = mysql
HOSTNAME = production_mysql_host
DATABASE = shop_mallnew_prod
USERNAME = prod_user
PASSWORD = prod_password
HOSTPORT = 3306
CHARSET = utf8
DEBUG = false
[redis]
HOST = production_redis_host
PORT = 6379
PASSWORD = production_redis_password
EXPIRY = 86400