From ad9634cb52e8a290e5036a102ea9b9b9daf0c239 Mon Sep 17 00:00:00 2001 From: Maxime Liquet <35924738+maximlt@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:01:36 +0200 Subject: [PATCH] set AE5 endpoint from env var (#287) --- dodo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dodo.py b/dodo.py index cc7eebde8..333c693e0 100644 --- a/dodo.py +++ b/dodo.py @@ -63,7 +63,7 @@ } } -AE5_ENDPOINT = 'pyviz.demo.anaconda.com' +EXAMPLES_HOLOVIZ_AE5_ENDPOINT = os.getenv('EXAMPLES_HOLOVIZ_AE5_ENDPOINT', 'pyviz.demo.anaconda.com') # python-dotenv is an optional dep, # use it to define environment variables @@ -85,7 +85,7 @@ 'name': 'hostname', 'long': 'hostname', 'type': str, - 'default': AE5_ENDPOINT, + 'default': EXAMPLES_HOLOVIZ_AE5_ENDPOINT, } ae5_username = { @@ -195,7 +195,7 @@ def deployment_cmd_to_endpoint(cmd, name, full=True): if not full: return endpoint - full_url = 'https://' + endpoint + '.' + AE5_ENDPOINT + full_url = 'https://' + endpoint + '.' + EXAMPLES_HOLOVIZ_AE5_ENDPOINT return full_url