feat(install,update): 新增NGINX部署目录配置与同步逻辑
- 在安装生成器中新增nginxRoot配置项并保存到部署配置 - 更新配置加载逻辑以兼容新增的nginxRoot配置 - 新增前端文件同步到NGINX目录的自动同步脚本 - 根据部署模式自动选择PM2重启或NGINX同步流程 - 升级脚本版本到2.1.0
This commit is contained in:
@@ -32,6 +32,7 @@ function saveConfig() {
|
||||
frontendDeploy: config.frontendDeploy,
|
||||
frontendPort: config.frontendPort,
|
||||
domain: config.domain,
|
||||
nginxRoot: config.nginxRoot || null,
|
||||
savedAt: new Date().toISOString(),
|
||||
};
|
||||
|
||||
@@ -63,6 +64,7 @@ function applySavedConfig(saved) {
|
||||
if (saved.frontendDeploy) config.frontendDeploy = saved.frontendDeploy;
|
||||
if (saved.frontendPort) config.frontendPort = saved.frontendPort;
|
||||
if (saved.domain) config.domain = saved.domain;
|
||||
if (saved.nginxRoot) config.nginxRoot = saved.nginxRoot;
|
||||
}
|
||||
|
||||
function parseArgs() {
|
||||
|
||||
Reference in New Issue
Block a user