mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
scheduler
Development
Dependencies
Download and install:
- the original App Engine SDK for Python (Linux, macOS) -- this should add
appcfg.pyto yourPATH python2.7.xpip
Setup
$ pip install -U virtualenv
$ virtualenv --python=$(which python2.7) $TMPDIR/scheduler
$ source $TMPDIR/scheduler/bin/activate
$ pip install -r requirements.txt -t lib
Deployment
-
Run:
$ gcloud app deploy --version $(date '+%Y%m%dt%H%M%S') --project positive-cocoa-90213 Services to deploy: descriptor: [/Users/simon/weave/build-tools/scheduler/app.yaml] source: [/Users/simon/weave/build-tools/scheduler] target project: [positive-cocoa-90213] target service: [default] target version: [20200512t154238] target url: [https://positive-cocoa-90213.appspot.com] Do you want to continue (Y/n)? Beginning deployment of service [default]... ╔════════════════════════════════════════════════════════════╗ ╠═ Uploading 433 files to Google Cloud Storage ═╣ ╚════════════════════════════════════════════════════════════╝ File upload done. Updating service [default]...done. Setting traffic split for service [default]...done. Deployed service [default] to [https://positive-cocoa-90213.appspot.com] You can stream logs from the command line by running: $ gcloud app logs tail -s default To view your application in the web browser run: $ gcloud app browse --project=positive-cocoa-90213 -
Go to console.cloud.google.com > Weave Integration Tests (
positive-cocoa-90213) > AppEngine > Versions and ensure traffic is being directed to the newly deployed version. -
Click on Tools > Logs, and ensure the application is behaving well.