blob: 671fc3b2dfd2ebbe5003b54931d23a0f80387de4 [file] [log] [blame]
if [[ -z `which go` ]]; then
echo "Please install Go before running the server."
exit 1
fi
if [[ -z "$GOPATH" ]]; then
echo "GOPATH environment variable is not set. Please see"
echo "http://golang.org/doc/code.html#GOPATH for more information."
exit 1
fi
go get github.com/gorilla/securecookie
go get code.google.com/p/goauth2/oauth
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/go/server/main.go $@