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.
|
- #/bin/bash
- SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
- PROJ_DIR="$SCRIPT_DIR/../"
-
- rm -rf /tmp/goweb
- echo "create /tmp/goweb"
- mkdir -p /tmp/goweb
- echo "prepare golang project"
- rsync -a $PROJ_DIR /tmp/goweb/
- cp -f $PROJ_DIR/deploy/config_production.json /tmp/goweb/config.json
- rm -rf /tmp/goweb/html/css
- rm -rf /tmp/goweb/html/test
- rm -rf /tmp/goweb/html/*.html
- echo "sync Web html"
- rsync -a /mnt/hgfs/workspace/2021-07-31-BiukopWeb/ /tmp/goweb/html/
-
-
- cd /tmp/goweb
- gcloud app deploy
-
- #list all versions
- gcloud app versions list ;
-
-
|