setup_prefork.sh 259 B

1234567891011121314
  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/qtc
  7. rm -f ./server
  8. go generate
  9. go build -o server
  10. ./server -prefork &