aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/bug_chomper/run_server.sh
blob: 1a49031f8ef75e43b6bb8fd88cdc3fa33cdc6842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if [[ -z `which go` ]]; then
  echo "Please install Go before running the server."
  exit 1
fi

go get github.com/gorilla/securecookie

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd $DIR

if [[ ! -f oauth_client_secret.json ]]; then
  gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json .
fi

GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@