-
Alessandro Ambrosano authored
Change-Id: I3f174db3d8a7f76b8059173dfe4b3c4136fa15c1
33d245bd
start_gzweb.sh 483 B
#!/bin/bash
if [[ $# -ne 0 && $# -ne 2 ]]; then
echo "Usage: start_gzweb [gzsever_host gzserver_port]"
exit 1
fi
ulimit -c unlimited
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
./stop_gzweb.sh
if [ ! -d http/client ]
then
echo "gzweb not initialized, have you run ./deploy.sh yet?"
exit
fi
./node_modules/.bin/http-server http/client &
cd gzbridge
if [ $# -eq 0 ]; then
./ws_server.js &
fi
if [ $# -eq 2 ]; then
./ws_server.js $1 $2 &
fi