feat(install,update): 新增NGINX部署目录配置与同步逻辑
- 在安装生成器中新增nginxRoot配置项并保存到部署配置 - 更新配置加载逻辑以兼容新增的nginxRoot配置 - 新增前端文件同步到NGINX目录的自动同步脚本 - 根据部署模式自动选择PM2重启或NGINX同步流程 - 升级脚本版本到2.1.0
This commit is contained in:
@@ -148,6 +148,8 @@ function generateNginxConfig() {
|
||||
frontendPath = '/var/www/idc';
|
||||
}
|
||||
|
||||
config.nginxRoot = frontendPath;
|
||||
|
||||
const nginxConfig = `# IDC设备管理系统 - Nginx配置
|
||||
# 生成时间: ${new Date().toISOString()}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user