fix url prefix

This commit is contained in:
w-mj 2023-03-22 22:15:24 +08:00
parent 3d53d3a83c
commit 7c12478586
No known key found for this signature in database
GPG Key ID: 3A2CB5BE2F835897
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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