disable go-micro/micro/web service on runtime startup
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
|||||||
cli "github.com/micro/cli/v2"
|
cli "github.com/micro/cli/v2"
|
||||||
|
|
||||||
"github.com/micro/micro/v2/client/api"
|
"github.com/micro/micro/v2/client/api"
|
||||||
"github.com/micro/micro/v2/client/web"
|
|
||||||
"github.com/micro/micro/v2/service/registry"
|
"github.com/micro/micro/v2/service/registry"
|
||||||
|
|
||||||
"github.com/refs/pman/pkg/process"
|
"github.com/refs/pman/pkg/process"
|
||||||
@@ -26,8 +25,8 @@ var (
|
|||||||
|
|
||||||
// MicroServices to start as part of the fullstack option
|
// MicroServices to start as part of the fullstack option
|
||||||
MicroServices = []string{
|
MicroServices = []string{
|
||||||
"api", // :8080
|
"api", // :8080
|
||||||
"web", // :8082
|
//"web", // :8082
|
||||||
"registry", // :8000
|
"registry", // :8000
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,7 +145,7 @@ func AddMicroPlatform(app *cli.App, opts micro.Options) {
|
|||||||
setDefaults()
|
setDefaults()
|
||||||
|
|
||||||
app.Commands = append(app.Commands, api.Commands(micro.Registry(opts.Registry))...)
|
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))...)
|
app.Commands = append(app.Commands, registry.Commands(micro.Registry(opts.Registry))...)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,8 +157,8 @@ func setDefaults() {
|
|||||||
api.HeaderPrefix = "X-Micro-Owncloud-"
|
api.HeaderPrefix = "X-Micro-Owncloud-"
|
||||||
|
|
||||||
// web
|
// web
|
||||||
web.Name = OwncloudNamespace + "web"
|
//web.Name = OwncloudNamespace + "web"
|
||||||
web.Namespace = OwncloudNamespace + "web"
|
//web.Namespace = OwncloudNamespace + "web"
|
||||||
|
|
||||||
// registry
|
// registry
|
||||||
registry.Name = OwncloudNamespace + "registry"
|
registry.Name = OwncloudNamespace + "registry"
|
||||||
|
|||||||
Reference in New Issue
Block a user