diff --git a/README.md b/README.md index 641b8c2..d442659 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,6 @@ Only these options can be set by environment variables for now. |--------------------|----------------------------------| | DB_TYPE | mongo(default),bolt | | DB_ADDRESS | mongodb://localhost:27017/swirl | -| TOKEN_KEY | 80fe9a6d5c6d5dd39f27cd37a77faf8a | | TOKEN_EXPIRY | 30m | | DOCKER_ENDPOINT | tcp://docker-proxy:2375 | | DOCKER_API_VERSION | 1.41 | diff --git a/api/service.go b/api/service.go index cef7bcc..60c4028 100644 --- a/api/service.go +++ b/api/service.go @@ -166,7 +166,9 @@ func serviceDeploy(b biz.ServiceBiz) web.HandlerFunc { if s == nil { err = b.Create(service, ctx.User()) } else { - err = b.Update(service, ctx.User()) + // Only the image field is allowed to be changed when updating. + s.Image = service.Image + err = b.Update(s, ctx.User()) } return ajax(ctx, err) } diff --git a/ui/src/pages/image/View.vue b/ui/src/pages/image/View.vue index 4036a73..0f7585d 100644 --- a/ui/src/pages/image/View.vue +++ b/ui/src/pages/image/View.vue @@ -1,5 +1,5 @@