From 94c1de34bc5f7f68ae9ddca46efb6c90a66fffd5 Mon Sep 17 00:00:00 2001 From: sperwing Date: Mon, 18 Nov 2024 21:45:36 +0100 Subject: [PATCH] fixing env --- front/Dockerfile | 3 +-- front/bahnui-front/src/components/routing.vue | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/Dockerfile b/front/Dockerfile index 55b67c7..6330d22 100644 --- a/front/Dockerfile +++ b/front/Dockerfile @@ -1,6 +1,5 @@ FROM nginx COPY bahnui-front/dist/. /var/www/html/ COPY default.conf /etc/nginx/conf.d/default.conf -ARG VUE_APP_BASE_URL -ENV VUE_APP_BASE_URL $VUE_APP_BASE_URL +ENV VUE_APP_BASE_URL http://server.bahn.sperwing.site:80 EXPOSE 80 \ No newline at end of file diff --git a/front/bahnui-front/src/components/routing.vue b/front/bahnui-front/src/components/routing.vue index 673885a..6704082 100644 --- a/front/bahnui-front/src/components/routing.vue +++ b/front/bahnui-front/src/components/routing.vue @@ -71,6 +71,7 @@ }, methods: { searchStationFrom() { + console.log(process.env.VUE_APP_BASE_URL) client.get("/searchStation", {params: {text: this.from.name}}).then(res => this.from = {name: res.data.name, id: res.data.id}); }, searchStationTo() {