install.sh 580 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. echo "=========================="
  3. echo
  4. echo "Nginx UI Install Shell"
  5. echo "Copyright (c) 0xJacky 2021"
  6. echo
  7. echo "=========================="
  8. echo "installing yarn..."
  9. npm install -g yarn
  10. echo "Compiling frontend..."
  11. cd nginx-ui-frontend || exit 1
  12. yarn build
  13. cd ..
  14. echo "Compiling api server..."
  15. cd server || exit 1
  16. go build -o nginx-ui-server main.go
  17. echo "Installing acme.sh..."
  18. go test -v test/acme_test.go
  19. echo "build completed"
  20. cd ..
  21. echo "==============="
  22. echo "frontend dist path: nginx-ui-frontend/dist"
  23. echo "start server, run server/nginx-ui-server"