MM-63577 Enable EnableLocalMode automatically during development (#30583)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
59cd90a36f
Коммит
0079289224
@@ -361,9 +361,12 @@ func New(sc ServiceConfig, options ...Option) (*PlatformService, error) {
|
||||
|
||||
ps.Busy = NewBusy(ps.clusterIFace)
|
||||
|
||||
// Enable developer settings if this is a "dev" build
|
||||
// Enable developer settings and mmctl local mode if this is a "dev" build
|
||||
if model.BuildNumber == "dev" {
|
||||
ps.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableDeveloper = true })
|
||||
ps.UpdateConfig(func(cfg *model.Config) {
|
||||
*cfg.ServiceSettings.EnableDeveloper = true
|
||||
*cfg.ServiceSettings.EnableLocalMode = true
|
||||
})
|
||||
}
|
||||
|
||||
ps.AddLicenseListener(func(oldLicense, newLicense *model.License) {
|
||||
|
||||
Ссылка в новой задаче
Block a user