Skip to content
Snippets Groups Projects
Commit 91bdc882 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Convert environment port to int

parent e7d2ec48
No related branches found
No related tags found
No related merge requests found
...@@ -3,11 +3,10 @@ services: ...@@ -3,11 +3,10 @@ services:
web: web:
build: . build: .
environment: environment:
# - DATA_HOST=cwbpub.cr.usgs.gov - DATA_HOST=cwbpub.cr.usgs.gov
# - DATA_PORT=2060 - DATA_PORT=2060
# - DATA_TYPE=edge - DATA_TYPE=edge
# - GEOMAG_WEBSERVICE_PORT=8000 - GEOMAG_VERSION=0.3.1
# - GEOMAG_VERSION=0.3.1
- WEBSERVICE=true - WEBSERVICE=true
ports: ports:
- '8000:8000' - '8000:8000'
...@@ -28,7 +28,7 @@ def get_data_factory() -> TimeseriesFactory: ...@@ -28,7 +28,7 @@ def get_data_factory() -> TimeseriesFactory:
""" """
data_type = os.getenv("DATA_TYPE", "edge") data_type = os.getenv("DATA_TYPE", "edge")
data_host = os.getenv("DATA_HOST", "cwbpub.cr.usgs.gov") data_host = os.getenv("DATA_HOST", "cwbpub.cr.usgs.gov")
data_port = os.getenv("DATA_PORT", 2060) data_port = int(os.getenv("DATA_PORT", "2060"))
if data_type == "edge": if data_type == "edge":
return EdgeFactory(host=data_host, port=data_port) return EdgeFactory(host=data_host, port=data_port)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment