cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

entrypoint.sh (530B)


      1#!/bin/sh
      2if env | grep -q ^SESSIONID=
      3then
      4    echo We are in the prod environment
      5  export REACT_APP_GUAC_BACKEND_HOSTNAME="wss://${SESSIONID}-8082-guacamole-mashup.${CHALLENGE_DOMAIN}:1337/"
      6  export REACT_APP_WIN_SERVER_HOSTNAME=localhost
      7else
      8  echo Docker Compose deployment
      9  export REACT_APP_GUAC_BACKEND_HOSTNAME="ws://localhost:8082/"
     10  export REACT_APP_WIN_SERVER_HOSTNAME=win-server
     11fi
     12
     13catch() {
     14	trap exit SIGINT
     15	sleep 2
     16	trap catch SIGINT
     17}
     18
     19trap catch SIGINT 
     20
     21npm run build
     22while [ 1 ]; do 
     23	serve -s build
     24done