diff --git a/Makefile b/Makefile index aa0fb31..18fbe8a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -TAG ?= v1.2.2 +TAG ?= v1.2.3 IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG) build: export CGO_ENABLED=0 diff --git a/src/model/app_model.go b/src/model/app_model.go index b46d9d9..91a954a 100644 --- a/src/model/app_model.go +++ b/src/model/app_model.go @@ -124,7 +124,7 @@ func (a *AppModel) DeploymentName() string { func (a *AppModel) GetCommandOrBlack() []string { if strings.TrimSpace(a.Command) != "" { t := a.Command - t = strings.ReplaceAll(t, "$URL_PREFIX", a.URLPrefix()) + t = strings.ReplaceAll(t, "$URL_PREFIX", "svc/"+a.URLPrefix()) return []string{"/bin/sh", "-c", t} } else { return nil