forked from mirrors/thatmattlove-hyperglass
Populate user config to Redis prior to accessing it via build-ui
This commit is contained in:
parent
bddcdcaca2
commit
f2e206925a
2 changed files with 5 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ def _version(
|
|||
def _start(build: bool = False, workers: t.Optional[int] = None) -> None:
|
||||
"""Start hyperglass"""
|
||||
# Project
|
||||
from hyperglass.main import run, init_user_config
|
||||
from hyperglass.main import run
|
||||
|
||||
# Local
|
||||
from .util import build_ui
|
||||
|
|
@ -53,7 +53,6 @@ def _start(build: bool = False, workers: t.Optional[int] = None) -> None:
|
|||
kwargs["workers"] = workers
|
||||
|
||||
try:
|
||||
init_user_config()
|
||||
if build:
|
||||
build_complete = build_ui(timeout=180)
|
||||
if build_complete:
|
||||
|
|
|
|||
|
|
@ -15,8 +15,12 @@ def build_ui(timeout: int) -> None:
|
|||
"""Create a new UI build."""
|
||||
# Project
|
||||
from hyperglass.state import use_state
|
||||
from hyperglass.configuration import init_user_config
|
||||
from hyperglass.util.frontend import build_frontend
|
||||
|
||||
# Populate configuration to Redis prior to accessing it.
|
||||
init_user_config()
|
||||
|
||||
state = use_state()
|
||||
|
||||
dev_mode = "production"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue