Skip to content

Commit

Permalink
Set default values for ports/urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Sep 18, 2023
1 parent 806f8a8 commit 24efc99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan2pycsw/ckan2pycsw.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
except (KeyError, ValueError):
PYCSW_CRON_HOUR_START = 4
method = "nightly"
URL = os.environ["CKAN_URL"]
PYCSW_URL = os.environ["PYCSW_URL"]
PYCSW_PORT = os.environ["PYCSW_PORT"]
PYCSW_DEV_PORT = os.environ["PYCSW_DEV_PORT"]
URL = os.environ.get("CKAN_URL", 'http://localhost:5000/')
PYCSW_PORT = os.environ.get("PYCSW_PORT", 8000)
PYCSW_URL = os.environ.get("PYCSW_URL", f'http://localhost:{PYCSW_PORT}/')
PYCSW_DEV_PORT = os.environ.get("PYCSW_DEV_PORT", 5678)
APP_DIR = os.environ.get("APP_DIR", "/app")
CKAN_API = "api/3/action/package_search"
PYCSW_CKAN_SCHEMA = os.environ.get("PYCSW_CKAN_SCHEMA", "iso19139_geodcatap")
Expand Down

0 comments on commit 24efc99

Please sign in to comment.