pkg.sh 284 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. set -e
  3. echo `pwd`
  4. mkdir -p build/www
  5. # be
  6. export GOPATH=`pwd`
  7. export GOROOT=/usr/lib/go-1.6
  8. go build -o blogScript src/main.go
  9. cp blogScript build/
  10. cp README.md build
  11. cp ./blogScript.sql ./blogScript.pdm build
  12. cp ./config.conf build
  13. # fe
  14. cp -r www/* build/www