From 3c6d238ab8aded6b7deabe56f868c71055971fd6 Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Fri, 11 Apr 2025 10:58:39 +0200 Subject: [PATCH] add http-server part 7.6 --- Dockerfile | 2 +- backend/server.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2b9cca..f359955 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,7 @@ COPY --from=build /app/frontend/index.html ./dist/frontend/ COPY --from=build /app/package.json ./dist/backend/ # Neu: Konfigurationsdatei ins Backend-Verzeichnis -COPY --from=build /app/backend/config.json ./dist/backend/ +#COPY --from=build /app/backend/config.json ./dist/backend/ COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching diff --git a/backend/server.ts b/backend/server.ts index 0176057..7954a42 100644 --- a/backend/server.ts +++ b/backend/server.ts @@ -1,10 +1,8 @@ import express from 'express'; import { executeCommand } from './broker.js'; -//import { executeCommand } from './broker'; -//import { executeCommand } from './broker.mjs'; const app = express(); -const port = 8080; +const port = 8090; //TODO: OR 8080 app.post('/api/command', (req, res) => { executeCommand();