setup_prefork.sh 289 B

1234567891011121314
  1. #!/bin/bash
  2. # Set the root of our go installation
  3. export GOROOT=${IROOT}/go
  4. export GOPATH=${TROOT}
  5. sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
  6. # Where to find the go executable
  7. export PATH="$GOROOT/bin:$PATH"
  8. go get ./...
  9. go run src/hello/hello.go -prefork &