iching-broker-level2/start.sh
Christopher Hase f5265a4e1d
All checks were successful
ci / build (push) Successful in 1m7s
run in docker part 1.0
2025-04-16 13:53:25 +02:00

15 lines
No EOL
409 B
Bash
Executable file

#!/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
# start backend in the background
node dist/backend/server.js &
# start frontend
npx http-server dist/frontend -p 8080 --cors --mime application/javascript=js