setup_prefork.sh 216 B

123456789101112
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' src/hello/hello.go
  3. fw_depends go
  4. go get -u github.com/jackc/pgx
  5. go get -u github.com/valyala/fasthttp
  6. rm -f ./hello
  7. go build src/hello/hello.go
  8. ./hello -prefork &