setup.sh 249 B

123456789101112
  1. #!/bin/bash
  2. sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
  3. # Where to find the go executable
  4. export PATH="$GOROOT/bin:$PATH"
  5. go get github.com/astaxie/beego
  6. go get github.com/go-sql-driver/mysql
  7. go run src/hello/hello.go &