部署到本地、执行命令公共方法、ssh部署port字段修改为泛型

This commit is contained in:
zhangchenhao
2025-05-14 10:57:50 +08:00
parent 640e62f757
commit de05da9cf1
3 changed files with 88 additions and 2 deletions

View File

@@ -40,6 +40,9 @@ func Deploy(cfg map[string]any, logger *public.Logger) error {
case "aliyun-oss":
logger.Debug("部署到阿里云OSS...")
return DeployOss(cfg)
case "localhost":
logger.Debug("部署到本地...")
return DeployLocalhost(cfg)
default:
return fmt.Errorf("不支持的部署: %s", providerName)
}