You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
568B

  1. #/bin/bash
  2. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
  3. PROJ_DIR="$SCRIPT_DIR/../"
  4. rm -rf /tmp/goweb
  5. echo "create /tmp/goweb"
  6. mkdir -p /tmp/goweb
  7. echo "prepare golang project"
  8. rsync -a $PROJ_DIR /tmp/goweb/
  9. cp -f $PROJ_DIR/deploy/config_production.json /tmp/goweb/config.json
  10. rm -rf /tmp/goweb/html/css
  11. rm -rf /tmp/goweb/html/test
  12. rm -rf /tmp/goweb/html/*.html
  13. echo "sync Web html"
  14. rsync -a /mnt/hgfs/workspace/2021-07-31-BiukopWeb/ /tmp/goweb/html/
  15. cd /tmp/goweb
  16. gcloud app deploy
  17. #list all versions
  18. gcloud app versions list ;