blob: c2d5ad420ce6cb38a03c44f45c4e400ea22698ca [file] [log] [blame]
commit-bot@chromium.org51324612014-05-13 18:03:45 +00001if [[ -z `which go` ]]; then
2 echo "Please install Go before running the server."
3 exit 1
4fi
5
commit-bot@chromium.org0fd0d4c2014-05-14 15:42:14 +00006if [[ -z "$GOPATH" ]]; then
7 echo "GOPATH environment variable is not set. Please see"
8 echo "http://golang.org/doc/code.html#GOPATH for more information."
9 exit 1
10fi
11
commit-bot@chromium.org51324612014-05-13 18:03:45 +000012go get github.com/gorilla/securecookie
commit-bot@chromium.org0fd0d4c2014-05-14 15:42:14 +000013go get code.google.com/p/goauth2
commit-bot@chromium.org51324612014-05-13 18:03:45 +000014
15DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
16cd $DIR
commit-bot@chromium.org44d42102014-05-13 19:18:55 +000017
18if [[ ! -f oauth_client_secret.json ]]; then
19 gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json .
20fi
21
commit-bot@chromium.org51324612014-05-13 18:03:45 +000022GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@
23