setup_prefork.sh 247 B

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