build-server.sh 335 B

1234567891011121314151617
  1. #!/bin/bash
  2. CURRENT_DIR=$(cd $(dirname $0); pwd)
  3. mkdir -p local/data/db
  4. mkdir -p local/static/web
  5. cp -rf ./conf ./local
  6. export GOODS=linux
  7. export GOARCH=amd64
  8. go build -o local/server app.go
  9. cp -rf ./frontend/dist/* ./local/static/web/
  10. rm -rf ./local/static/web/config.js
  11. chmod +x ./local/server
  12. tar -czf nginx-ui.tar.gz ./local