diff --git a/data/docker-compose.yml b/data/docker-compose.yml index 5737d39a..455d0ed7 100644 --- a/data/docker-compose.yml +++ b/data/docker-compose.yml @@ -6,6 +6,7 @@ services: image: vacant-lots-proj:latest environment: - GOOGLE_APPLICATION_CREDENTIALS=/app/service-account-key.json + - CFP_MAPBOX_TOKEN_UPLOADER - VACANT_LOTS_DB - CLEAN_GREEN_GOOGLE_KEY - PYTHONUNBUFFERED=1 diff --git a/data/src/config/config.py b/data/src/config/config.py index 7b7fa01c..16630a54 100644 --- a/data/src/config/config.py +++ b/data/src/config/config.py @@ -8,6 +8,9 @@ USE_CRS = "EPSG:2272" """ the standard geospatial code for Pennsylvania South (ftUS) """ +MAPBOX_TOKEN = os.environ.get("CFP_MAPBOX_TOKEN_UPLOADER") +""" The location of the token for your mapbox account in your environment """ + log_level: int = logging.WARN """ overall log level for the project """ diff --git a/data/src/script.py b/data/src/script.py index cf42ace6..0b7bcc3e 100644 --- a/data/src/script.py +++ b/data/src/script.py @@ -127,7 +127,7 @@ conn.commit() - # Post to GCP + # Post to Mapbox dataset.build_and_publish(tiles_file_id_prefix) # if we are reloading, run the diff report, then archive the backup and finally prune old archives diff --git a/src/config/config.ts b/src/config/config.ts index 23cb2ad5..6002630e 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -1,5 +1,9 @@ const EMPTY_STRING = ''; +export const mapboxAccessToken = + 'pk.eyJ1IjoibmxlYm92aXRzIiwiYSI6ImNsZXQ2Nzd3ZDBjZnYzcHFvYXhib2RqYzQifQ.PWg2LuNCH1E6-REjmYvdOg' || + EMPTY_STRING; + export const maptilerApiKey = process.env.NEXT_PUBLIC_MAPTILER_KEY || EMPTY_STRING;