From 042bafac2ca751cbcebe0e5860c86cbd8c343e98 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 13 Jun 2025 21:16:07 +0200 Subject: [PATCH] Support LT_PORT in healtcheck script Signed-off-by: DL6ER --- scripts/healthcheck.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/healthcheck.py b/scripts/healthcheck.py index 2f0d22f..10bf315 100644 --- a/scripts/healthcheck.py +++ b/scripts/healthcheck.py @@ -1,7 +1,9 @@ import requests +import os +port = os.environ.get('LT_PORT', '5000') response = requests.post( - url='http://localhost:5000/translate', + url=f'http://localhost:{port}/translate', headers={'Content-Type': 'application/json'}, json={ 'q': 'Hello World!',