iching-broker-level2/start.sh

15 lines
409 B
Bash
Raw Normal View History

2025-04-16 13:53:25 +02:00
#!/bin/bash
# Setze Standard-Wert auf "k8s" wenn DEPLOY_MODE nicht gesetzt ist
DEPLOY_MODE=${DEPLOY_MODE:-k8s}
echo "DEPLOY_MODE ist: $DEPLOY_MODE"
# Injektiere ins Frontend
echo "window.DEPLOY_MODE = \"$DEPLOY_MODE\";" > dist/frontend/deploy.js
2025-04-14 15:02:31 +02:00
# start backend in the background
2025-04-11 10:51:14 +02:00
node dist/backend/server.js &
2025-04-11 10:15:59 +02:00
2025-04-14 15:02:31 +02:00
# start frontend
2025-04-11 14:49:17 +02:00
npx http-server dist/frontend -p 8080 --cors --mime application/javascript=js