Files
vf_react/.env.deploy.example
2025-10-22 11:02:39 +08:00

64 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 部署配置文件
# 首次使用请复制此文件为 .env.deploy 并填写真实配置
# ==================== 服务器配置 ====================
# 服务器 IP 或域名
SERVER_HOST=your-server-ip-or-domain
# SSH 用户名
SERVER_USER=ubuntu
# SSH 端口
SERVER_PORT=22
# SSH 密钥路径(留空使用默认 ~/.ssh/id_rsa
SSH_KEY_PATH=
# ==================== 路径配置 ====================
# 服务器上的 Git 仓库路径
REMOTE_PROJECT_PATH=/home/ubuntu/vf_react
# 生产环境部署路径
PRODUCTION_PATH=/var/www/valuefrontier.cn
# 部署备份目录
BACKUP_DIR=/home/ubuntu/deployments
# 部署日志目录
LOG_DIR=/home/ubuntu/deploy-logs
# ==================== Git 配置 ====================
# 部署分支
DEPLOY_BRANCH=feature
# ==================== 备份配置 ====================
# 保留备份数量
KEEP_BACKUPS=5
# ==================== 企业微信通知配置 ====================
# 是否启用企业微信通知 (true/false)
ENABLE_WECHAT_NOTIFY=false
# 企业微信机器人 Webhook URL
WECHAT_WEBHOOK_URL=
# 通知提及的用户(@all 或 手机号/userid
WECHAT_MENTIONED_LIST=
# ==================== 部署配置 ====================
# 是否在部署前运行 npm install (true/false)
RUN_NPM_INSTALL=true
# 是否在部署前运行 npm test (true/false)
RUN_NPM_TEST=false
# 构建命令
BUILD_COMMAND=npm run build
# ==================== 高级配置 ====================
# SSH 连接超时时间(秒)
SSH_TIMEOUT=30
# 部署超时时间(秒)
DEPLOY_TIMEOUT=600