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!',