mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-12 04:01:48 +08:00
migrate emqx
This commit is contained in:
@@ -66,6 +66,7 @@ func HandleRESTRequests(wg *sync.WaitGroup, ctx context.Context) {
|
|||||||
}()
|
}()
|
||||||
if os.Getenv("MIGRATE_EMQX") == "true" {
|
if os.Getenv("MIGRATE_EMQX") == "true" {
|
||||||
logger.Log(0, "migrating emqx...")
|
logger.Log(0, "migrating emqx...")
|
||||||
|
time.Sleep(time.Second * 2)
|
||||||
m.MigrateEmqx()
|
m.MigrateEmqx()
|
||||||
}
|
}
|
||||||
logger.Log(0, "REST Server successfully started on port ", port, " (REST)")
|
logger.Log(0, "REST Server successfully started on port ", port, " (REST)")
|
||||||
|
Reference in New Issue
Block a user