Skip to content

Commit

Permalink
added dev endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rv0lt committed Sep 18, 2024
1 parent 247a5fd commit 9ea47f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dds_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ class DDSEndpoint:
BASE_ENDPOINT_DOCKER = "http://dds_backend:5000/api/v1"
BASE_ENDPOINT_REMOTE = "https://delivery.scilifelab.se/api/v1"
BASE_ENDPOINT_REMOTE_TEST = "https://testing.delivery.scilifelab.se/api/v1"
BASE_ENDPOINT_REMOTE_DEV = "https://dev.delivery.scilifelab.se/api/v1"
if os.getenv("DDS_CLI_ENV") == "development":
BASE_ENDPOINT = BASE_ENDPOINT_LOCAL
elif os.getenv("DDS_CLI_ENV") == "docker-dev":
BASE_ENDPOINT = BASE_ENDPOINT_DOCKER
elif os.getenv("DDS_CLI_ENV") == "test-instance":
BASE_ENDPOINT = BASE_ENDPOINT_REMOTE_TEST
elif os.getenv("DDS_CLI_ENV") == "development-instance":
BASE_ENDPOINT = BASE_ENDPOINT_REMOTE_DEV
else:
BASE_ENDPOINT = BASE_ENDPOINT_REMOTE

Expand Down

0 comments on commit 9ea47f3

Please sign in to comment.