From 49a87bb154b5d15e8e77aaebee9618b1db3547ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Thu, 30 Oct 2025 15:24:34 +0100 Subject: [PATCH] first deployment FIX --- application.properties | 2 ++ src/main/angular/src/app/common.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/application.properties b/application.properties index a2f653a..99c5c5e 100644 --- a/application.properties +++ b/application.properties @@ -9,3 +9,5 @@ spring.jpa.hibernate.ddl-auto=update spring.jackson.serialization.indent_output=true #- de.ph87.data.mqtt.uri=tcp://10.0.0.50:1883 +# +server.port=8084 \ No newline at end of file diff --git a/src/main/angular/src/app/common.ts b/src/main/angular/src/app/common.ts index ea48b48..090cc16 100644 --- a/src/main/angular/src/app/common.ts +++ b/src/main/angular/src/app/common.ts @@ -51,7 +51,7 @@ export function or(t: T | null | undefined, map: (t: T) => R, orElse: E } export function url(protocol: string, path: any[]): string { - return `${protocol}${location.protocol === 'https://' ? 's' : ''}://localhost:8080/${path.join('/')}`; + return `${protocol}${location.protocol === 'https://' ? 's' : ''}://${location.hostname}:8084/${path.join('/')}`; } export function stompServiceFactory() {