Skip to content

Commit

Permalink
disable go-micro/micro/web service on runtime startup
Browse files Browse the repository at this point in the history
  • Loading branch information
refs committed Dec 15, 2020
1 parent 974b146 commit 1972a96
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ocis/pkg/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
cli "github.com/micro/cli/v2"

"github.com/micro/micro/v2/client/api"
"github.com/micro/micro/v2/client/web"
"github.com/micro/micro/v2/service/registry"

"github.com/refs/pman/pkg/process"
Expand All @@ -26,8 +25,8 @@ var (

// MicroServices to start as part of the fullstack option
MicroServices = []string{
"api", // :8080
"web", // :8082
"api", // :8080
//"web", // :8082
"registry", // :8000
}

Expand Down Expand Up @@ -146,7 +145,7 @@ func AddMicroPlatform(app *cli.App, opts micro.Options) {
setDefaults()

app.Commands = append(app.Commands, api.Commands(micro.Registry(opts.Registry))...)
app.Commands = append(app.Commands, web.Commands(micro.Registry(opts.Registry))...)
//app.Commands = append(app.Commands, web.Commands(micro.Registry(opts.Registry))...)
app.Commands = append(app.Commands, registry.Commands(micro.Registry(opts.Registry))...)
}

Expand All @@ -158,8 +157,8 @@ func setDefaults() {
api.HeaderPrefix = "X-Micro-Owncloud-"

// web
web.Name = OwncloudNamespace + "web"
web.Namespace = OwncloudNamespace + "web"
//web.Name = OwncloudNamespace + "web"
//web.Namespace = OwncloudNamespace + "web"

// registry
registry.Name = OwncloudNamespace + "registry"
Expand Down

0 comments on commit 1972a96

Please sign in to comment.