fix url prefix
This commit is contained in:
parent
3d53d3a83c
commit
7c12478586
2
Makefile
2
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue