From dc07ddb6088a1fcb26fdbf01b5cad3611d91f5df Mon Sep 17 00:00:00 2001 From: michael spreng Date: Fri, 5 Jun 2020 21:06:44 +0200 Subject: [PATCH 1/2] use absolute urls for routing backend --- src/leaflet_options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/leaflet_options.js b/src/leaflet_options.js index 35420ec0..11625267 100644 --- a/src/leaflet_options.js +++ b/src/leaflet_options.js @@ -24,17 +24,17 @@ module.exports = { }, services: [{ label: 'Car', - path: '/routed-car/route/v1', + path: 'https://routing.openstreetmap.de/routed-car/route/v1', debug: 'car', }, { label: 'Bike', - path: '/routed-bike/route/v1', + path: 'https://routing.openstreetmap.de/routed-bike/route/v1', debug: 'bike', }, { label: 'Foot', - path: '/routed-foot/route/v1', + path: 'https://routing.openstreetmap.de/routed-foot/route/v1', debug: 'foot', }], layer: [{ From 0ac15f195ea04b50995ec930e8ed3286f3b13f85 Mon Sep 17 00:00:00 2001 From: halkoma <46521200+halkoma@users.noreply.github.com> Date: Sun, 10 Jan 2021 15:46:30 +0200 Subject: [PATCH 2/2] Update Dockerfile to install git into the container Without this, docker build fails because git is used in package.json at line 41: "leaflet-routing-machine": "git+https://github.com/sosm/leaflet-routing-machine#b5690a3bc18686fa235e2d9e9d3069f70014a2a7", --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 40308809..fc1571c7 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ RUN mkdir -p /src COPY package.json /src # Install app dependencies -RUN apk add --no-cache sed nodejs && \ +RUN apk add --no-cache sed nodejs git && \ cd /src && \ npm install