github.com/weaveworks/common@v0.0.0-20230728070032-dd9e68f319d5/tools/scheduler/README.md (about) 1 # scheduler 2 3 ## Development 4 5 ### Dependencies 6 7 Download and install: 8 9 - the [original App Engine SDK for Python](https://cloud.google.com/appengine/docs/standard/python/download) ([Linux](https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.77.zip), [macOS](https://storage.googleapis.com/appengine-sdks/featured/GoogleAppEngineLauncher-1.9.77.dmg)) -- this should add `appcfg.py` to your `PATH` 10 - `python` 2.7.x 11 - `pip` 12 13 ### Setup 14 15 ```console 16 $ pip install -U virtualenv 17 $ virtualenv --python=$(which python2.7) $TMPDIR/scheduler 18 $ source $TMPDIR/scheduler/bin/activate 19 $ pip install -r requirements.txt -t lib 20 ``` 21 22 ## Deployment 23 24 - Run: 25 ```console 26 $ appcfg.py --version $(date '+%Y%m%dt%H%M%S') update . 27 XX:XX PM Application: positive-cocoa-90213; version: 1 28 XX:XX PM Host: appengine.google.com 29 XX:XX PM Starting update of app: positive-cocoa-90213, version: 1 30 XX:XX PM Getting current resource limits. 31 Your browser has been opened to visit: 32 33 https://accounts.google.com/o/oauth2/auth?scope=... 34 35 If your browser is on a different machine then exit and re-run this 36 application with the command-line parameter 37 38 --noauth_local_webserver 39 40 Authentication successful. 41 XX:XX PM Scanning files on local disk. 42 XX:XX PM Scanned 500 files. 43 XX:XX PM Scanned 1000 files. 44 XX:XX PM Cloning 1220 application files. 45 XX:XX PM Uploading 28 files and blobs. 46 XX:XX PM Uploaded 28 files and blobs. 47 XX:XX PM Compilation starting. 48 XX:XX PM Compilation completed. 49 XX:XX PM Starting deployment. 50 XX:XX PM Checking if deployment succeeded. 51 XX:XX PM Will check again in 1 seconds. 52 XX:XX PM Checking if deployment succeeded. 53 XX:XX PM Will check again in 2 seconds. 54 XX:XX PM Checking if deployment succeeded. 55 XX:XX PM Will check again in 4 seconds. 56 XX:XX PM Checking if deployment succeeded. 57 XX:XX PM Deployment successful. 58 XX:XX PM Checking if updated app version is serving. 59 XX:XX PM Completed update of app: positive-cocoa-90213, version: 1 60 XX:XX PM Uploading cron entries. 61 ``` 62 63 - Go to [console.cloud.google.com](https://console.cloud.google.com) > Weave Integration Tests (`positive-cocoa-90213`) > AppEngine > Versions and ensure traffic is being directed to the newly deployed version. 64 - Click on Tools > Logs, and ensure the application is behaving well.