diff --git a/template/api/deploy/deoloy.go b/template/api/deploy/deoloy.go index 02d2dd6..174fed0 100644 --- a/template/api/deploy/deoloy.go +++ b/template/api/deploy/deoloy.go @@ -82,6 +82,12 @@ func GenDeploy(namespace string, api config.Api) error { return err } + // application.yaml 文件 + err = copyTo("templates/application.yaml", templatesDirPath+"/application.yaml") + if err != nil { + return err + } + // deployment.yaml 文件 err = copyTo("templates/deployment.yaml", templatesDirPath+"/deployment.yaml") if err != nil { diff --git a/template/service/deploy/deoloy.go b/template/service/deploy/deoloy.go index 8be2441..e937d13 100644 --- a/template/service/deploy/deoloy.go +++ b/template/service/deploy/deoloy.go @@ -69,6 +69,12 @@ func GenDeploy(namespace string, service config.Service) error { return err } + // application.yaml 文件 + err = copyTo("templates/application.yaml", templatesDirPath+"/application.yaml") + if err != nil { + return err + } + // deployment.yaml 文件 err = copyTo("templates/deployment.yaml", templatesDirPath+"/deployment.yaml") if err != nil {