commit-bot@chromium.org | 5132461 | 2014-05-13 18:03:45 +0000 | [diff] [blame] | 1 | if [[ -z `which go` ]]; then |
| 2 | echo "Please install Go before running the server." |
| 3 | exit 1 |
| 4 | fi |
| 5 | |
| 6 | go get github.com/gorilla/securecookie |
| 7 | |
| 8 | DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| 9 | cd $DIR |
commit-bot@chromium.org | 44d4210 | 2014-05-13 19:18:55 +0000 | [diff] [blame] | 10 | |
| 11 | if [[ ! -f oauth_client_secret.json ]]; then |
| 12 | gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json . |
| 13 | fi |
| 14 | |
commit-bot@chromium.org | 5132461 | 2014-05-13 18:03:45 +0000 | [diff] [blame] | 15 | GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@ |
| 16 | |