Skip to content

Commit

Permalink
set AE5 endpoint from env var (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Oct 14, 2023
1 parent 451bf7e commit ad9634c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -85,7 +85,7 @@
'name': 'hostname',
'long': 'hostname',
'type': str,
'default': AE5_ENDPOINT,
'default': EXAMPLES_HOLOVIZ_AE5_ENDPOINT,
}

ae5_username = {
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit ad9634c

Please sign in to comment.