Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: tools/bug_chomper/run_server.sh

Issue 649663003: bug_chomper: Make server's port configurable. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/bug_chomper/src/server/server.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 if [[ -z `which go` ]]; then 1 if [[ -z `which go` ]]; then
2 echo "Please install Go before running the server." 2 echo "Please install Go before running the server."
3 exit 1 3 exit 1
4 fi 4 fi
5 5
6 if [[ -z "$GOPATH" ]]; then 6 if [[ -z "$GOPATH" ]]; then
7 echo "GOPATH environment variable is not set. Please see" 7 echo "GOPATH environment variable is not set. Please see"
8 echo "http://golang.org/doc/code.html#GOPATH for more information." 8 echo "http://golang.org/doc/code.html#GOPATH for more information."
9 exit 1 9 exit 1
10 fi 10 fi
11 11
12 go get github.com/gorilla/securecookie 12 go get github.com/gorilla/securecookie
13 go get code.google.com/p/goauth2/oauth 13 go get code.google.com/p/goauth2/oauth
14 14
15 DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 15 DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
16 cd $DIR 16 cd $DIR
17 17
18 if [[ ! -f oauth_client_secret.json ]]; then 18 if [[ ! -f oauth_client_secret.json ]]; then
19 gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json . 19 gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json .
20 fi 20 fi
21 21
22 GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@ 22 GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@
23
OLDNEW
« no previous file with comments | « no previous file | tools/bug_chomper/src/server/server.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698