Skip to content

Commit

Permalink
Add CUSTOM_GDAL_GEOS to backend deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac committed Dec 13, 2024
1 parent f2dd483 commit 1f38f94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/gwells/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
# GeoDjango External Library Paths
# When running containerised, GDAL_LIBRARY_PATH and GEOS_LIBRARY_PATH -**MUST**- be specified.
# For running locally, if you've configured you local system correctly, CUSTOM_GDAL_GEOS may be set to False.
# if get_env_variable('CUSTOM_GDAL_GEOS', 'True', strict=False, warn=False) == 'True':
GDAL_LIBRARY_PATH = get_env_variable(
'GDAL_LIBRARY_PATH', '/usr/local/lib/libgdal.so')
GEOS_LIBRARY_PATH = get_env_variable(
'GEOS_LIBRARY_PATH', '/usr/local/lib/libgeos_c.so')
if get_env_variable('CUSTOM_GDAL_GEOS', 'True', strict=False, warn=False) == 'True':
GDAL_LIBRARY_PATH = get_env_variable(
'GDAL_LIBRARY_PATH', '/usr/local/lib/libgdal.so')
GEOS_LIBRARY_PATH = get_env_variable(
'GEOS_LIBRARY_PATH', '/usr/local/lib/libgeos_c.so')

# django-settings-export lets us make these variables available in the templates.
# This eleminate the need for setting the context for each and every view.
Expand Down
2 changes: 2 additions & 0 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ objects:
configMapKeyRef:
key: SSO_IDP_HINT
name: ${REPO}-${ZONE}-global-config
- name: CUSTOM_GDAL_GEOS
value: 'false'
- name: WEB_CONCURRENCY
value: '4'
- name: GUNICORN_WORKERS
Expand Down

0 comments on commit 1f38f94

Please sign in to comment.