add http-server part 7.6
This commit is contained in:
parent
0676dd5698
commit
3c6d238ab8
2 changed files with 2 additions and 4 deletions
|
@ -37,7 +37,7 @@ COPY --from=build /app/frontend/index.html ./dist/frontend/
|
||||||
COPY --from=build /app/package.json ./dist/backend/
|
COPY --from=build /app/package.json ./dist/backend/
|
||||||
|
|
||||||
# Neu: Konfigurationsdatei ins Backend-Verzeichnis
|
# 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
|
COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
import express from 'express';
|
import express from 'express';
|
||||||
import { executeCommand } from './broker.js';
|
import { executeCommand } from './broker.js';
|
||||||
//import { executeCommand } from './broker';
|
|
||||||
//import { executeCommand } from './broker.mjs';
|
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 8080;
|
const port = 8090; //TODO: OR 8080
|
||||||
|
|
||||||
app.post('/api/command', (req, res) => {
|
app.post('/api/command', (req, res) => {
|
||||||
executeCommand();
|
executeCommand();
|
||||||
|
|
Loading…
Reference in a new issue