mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
make UI build timeout overridable
This commit is contained in:
parent
a96772ee88
commit
65734a1e5a
1 changed files with 7 additions and 1 deletions
|
|
@ -106,9 +106,15 @@ async def build_ui(app_path):
|
|||
RuntimeError: Raised if exit code is not 0.
|
||||
RuntimeError: Raised when any other error occurs.
|
||||
"""
|
||||
import os
|
||||
import asyncio
|
||||
|
||||
timeout = 120
|
||||
try:
|
||||
timeout = os.environ["HYPERGLASS_UI_BUILD_TIMEOUT"]
|
||||
log.info("Found UI build timeout environment variable: {}", timeout)
|
||||
timeout = int(timeout)
|
||||
except KeyError:
|
||||
timeout = 90
|
||||
|
||||
ui_dir = Path(__file__).parent / "ui"
|
||||
build_dir = app_path / "static" / "ui"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue