iching-broker-level2/start.sh

15 lines
409 B
Bash
Raw Permalink Normal View History

2025-04-16 11:53:25 +00: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 13:02:31 +00:00
# start backend in the background
2025-04-11 08:51:14 +00:00
node dist/backend/server.js &
2025-04-11 08:15:59 +00:00
2025-04-14 13:02:31 +00:00
# start frontend
2025-04-11 12:49:17 +00:00
npx http-server dist/frontend -p 8080 --cors --mime application/javascript=js