build(server): 拆分环境配置,新增生产与本地环境文件
拆分原 .env 为生产环境配置 .env 和本地开发覆盖配置 .env.local,更新 .gitignore 忽略 .env 相关环境文件
This commit is contained in:
1 parent
e03fb019c5
commit
307e9cf1b9
4 files changed
+1748
-354
No files matched your search
@@ -0,0 +1,9 @@
|
||||
# 本地开发库连接配置(MIDWAY_SERVER_ENV=local 时生效,覆盖 .env 中的生产库配置)
|
||||
PG_HOST=127.0.0.1
|
||||
PG_PORT=5432
|
||||
PG_DATABASE=xintong
|
||||
PG_USERNAME=postgres
|
||||
PG_PASSWORD=postgres
|
||||
|
||||
# 本地开发使用测试桶(RustFS 仍复用服务器上的同一套地址与密钥)
|
||||
RUSTFS_BUCKET=xintong-test
|
||||
Reference in new issue
Block a user