From 7a19c79292663cc46ff4d148957fd49b3df8afca Mon Sep 17 00:00:00 2001 From: tomasz t Date: Fri, 1 Apr 2022 01:14:51 +0200 Subject: [PATCH] changed metadata url to be absolute --- .github/workflows/deploy_to_prod.yaml | 1 + web/js/map.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_to_prod.yaml b/.github/workflows/deploy_to_prod.yaml index 5c817c6..f632e38 100644 --- a/.github/workflows/deploy_to_prod.yaml +++ b/.github/workflows/deploy_to_prod.yaml @@ -43,6 +43,7 @@ jobs: --quiet /home/${{ secrets.SSH_USER }}/aed-mapa/ /home/${{ secrets.SSH_USER }}/temp_deploy_prod/ sed -i "s/<< oauth_consumer_key >>/$OAUTH_CONSUMER_KEY/;s/<< oauth_secret >>/$OAUTH_SECRET/;s|<< url >>|$OSM_API_URL|" /home/${{ secrets.SSH_USER }}/temp_deploy_prod/js/osm-integration.js sed -i "s|https://aed.openstreetmap.org.pl/dev/|https://aed.openstreetmap.org.pl/|g" /home/${{ secrets.SSH_USER }}/temp_deploy_prod/map_style/style.json + sed -i "s|https://aed.openstreetmap.org.pl/dev/|https://aed.openstreetmap.org.pl/|g" /home/${{ secrets.SSH_USER }}/temp_deploy_prod/js/map.js rsync --update --recursive --delete \ --exclude '*.py' --exclude '*.geojson' --exclude '.git*' --exclude 'aed_poland_metadata.json' \ --exclude 'requirements.txt' --exclude 'LICENSE' --exclude 'README.md' --exclude '*.ods' --exclude '*.csv' \ diff --git a/web/js/map.js b/web/js/map.js index cd972a5..9fd1818 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -1,4 +1,4 @@ -const aedMetadata = './aed_poland_metadata.json'; +const aedMetadata = 'https://aed.openstreetmap.org.pl/dev/aed_poland_metadata.json'; const controlsLocation = 'bottom-right'; let aedNumberElements = [ document.getElementById('aed-number'),