docs: add .env.example template for environment configuration
Co-Authored-By: Claude (glm-5) <noreply@anthropic.com>
This commit is contained in:
59
.env.example
Normal file
59
.env.example
Normal file
@@ -0,0 +1,59 @@
|
||||
# ===========================
|
||||
# ERP 系统配置
|
||||
# ===========================
|
||||
ERP_URL=https://example.com:8082/
|
||||
ERP_USERNAME=your_username
|
||||
ERP_PASSWORD=your_password
|
||||
ERP_HEADLESS=true
|
||||
ERP_IGNORE_HTTPS_ERRORS=true
|
||||
ERP_AUTO_CLOSE_BROWSER=true
|
||||
|
||||
# ===========================
|
||||
# 数据库配置 - SQL Server
|
||||
# ===========================
|
||||
DB_TYPE=sqlserver
|
||||
DB_SERVER=192.168.1.100
|
||||
DB_NAME=YourDatabase
|
||||
DB_USERNAME=your_db_username
|
||||
DB_PASSWORD=your_db_password
|
||||
DB_SQLSERVER_DRIVER=ODBC Driver 18 for SQL Server
|
||||
DB_TRUST_SERVER_CERTIFICATE=yes
|
||||
|
||||
# ===========================
|
||||
# 数据库配置 - MySQL (切换时使用)
|
||||
# ===========================
|
||||
# DB_TYPE=mysql
|
||||
# DB_NAME=your_mysql_db
|
||||
# DB_USERNAME=your_mysql_username
|
||||
# DB_PASSWORD=your_mysql_password
|
||||
DB_MYSQL_HOST=192.168.1.100
|
||||
DB_MYSQL_PORT=3306
|
||||
DB_MYSQL_CHARSET=utf8mb4
|
||||
|
||||
# ===========================
|
||||
# 路径配置
|
||||
# ===========================
|
||||
PATH_DATA_DIR=/path/to/your/data
|
||||
PATH_PRODUCTION_ID_FILE=ProductionID.txt
|
||||
PATH_DEFAULT_OUTPUT=离散备料计划维护_合并.xlsx
|
||||
PATH_VALIDATION_OUTPUT=物料状态校验结果.xlsx
|
||||
|
||||
# ===========================
|
||||
# 数据提取配置
|
||||
# ===========================
|
||||
EXTRACTION_BATCH_SIZE=100
|
||||
EXTRACTION_VERBOSE=true
|
||||
EXTRACTION_AUTO_CONVERT=true
|
||||
EXTRACTION_MERGE_BATCHES=true
|
||||
EXTRACTION_ENABLE_DB_PERSISTENCE=true
|
||||
|
||||
# ===========================
|
||||
# 校验配置
|
||||
# ===========================
|
||||
VALIDATION_DATA_SOURCE=database_full
|
||||
VALIDATION_USE_DATABASE=true
|
||||
VALIDATION_BATCH_SIZE=2000
|
||||
VALIDATION_ENABLE_CRUD=false
|
||||
VALIDATION_DEFAULT_MANAGER=
|
||||
VALIDATION_MATCH_MODE=substring
|
||||
EXECUTION_DRYRUN=true
|
||||
Reference in New Issue
Block a user