Update public source
This commit is contained in:
@@ -35,6 +35,7 @@ TILE_STYLE_URL = TILESERVER_CONFIG_DATA["style_url"]
|
||||
TILESERVER_DIR = TILESERVER_CONFIG_DATA["directory"]
|
||||
TILESERVER_ENTRY = TILESERVER_CONFIG_DATA["entry"]
|
||||
TILESERVER_CONFIG = TILESERVER_CONFIG_DATA["config"]
|
||||
TILESERVER_CONFIG_PATH = TILESERVER_CONFIG_DATA["config_path"]
|
||||
|
||||
STARTUP_TIMEOUT = 30
|
||||
POLL_INTERVAL = 0.5
|
||||
@@ -124,7 +125,7 @@ def start_tileserver():
|
||||
if port_is_open(TILE_HOST, TILE_PORT):
|
||||
raise LifecycleError(
|
||||
f"Порт {TILE_PORT} занят, но ожидаемый "
|
||||
"стиль server-map недоступен. "
|
||||
f"стиль {TILESERVER_CONFIG_DATA['style']} недоступен. "
|
||||
"Чужой процесс не будет остановлен."
|
||||
)
|
||||
|
||||
@@ -141,7 +142,7 @@ def start_tileserver():
|
||||
f"{TILESERVER_ENTRY}"
|
||||
)
|
||||
|
||||
config_path = TILESERVER_DIR / TILESERVER_CONFIG
|
||||
config_path = TILESERVER_CONFIG_PATH
|
||||
|
||||
if not config_path.is_file():
|
||||
raise LifecycleError(
|
||||
@@ -822,10 +823,10 @@ def install():
|
||||
f"Не найден TileServer entry point: {TILESERVER_ENTRY}"
|
||||
)
|
||||
|
||||
if not (TILESERVER_DIR / TILESERVER_CONFIG).is_file():
|
||||
if not TILESERVER_CONFIG_PATH.is_file():
|
||||
raise LifecycleError(
|
||||
"Не найден TileServer config: "
|
||||
f"{TILESERVER_DIR / TILESERVER_CONFIG}"
|
||||
f"{TILESERVER_CONFIG_PATH}"
|
||||
)
|
||||
|
||||
check = subprocess.run(
|
||||
|
||||
Reference in New Issue
Block a user