-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3546 from dholbach/drop-email2
Import new build-tools instead of changing tools/README.md
- Loading branch information
Showing
6 changed files
with
102 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,64 @@ | ||
To upload newer version: | ||
# scheduler | ||
|
||
## Development | ||
|
||
### Dependencies | ||
|
||
Download and install: | ||
|
||
- 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` | ||
- `python` 2.7.x | ||
- `pip` | ||
|
||
### Setup | ||
|
||
```console | ||
$ pip install -U virtualenv | ||
$ virtualenv --python=$(which python2.7) $TMPDIR/scheduler | ||
$ source $TMPDIR/scheduler/bin/activate | ||
$ pip install -r requirements.txt -t lib | ||
``` | ||
pip install -r requirements.txt -t lib | ||
appcfg.py update . | ||
``` | ||
|
||
## Deployment | ||
|
||
- Run: | ||
```console | ||
$ appcfg.py --version $(date '+%Y%m%dt%H%M%S') update . | ||
XX:XX PM Application: positive-cocoa-90213; version: 1 | ||
XX:XX PM Host: appengine.google.com | ||
XX:XX PM Starting update of app: positive-cocoa-90213, version: 1 | ||
XX:XX PM Getting current resource limits. | ||
Your browser has been opened to visit: | ||
|
||
https://accounts.google.com/o/oauth2/auth?scope=... | ||
|
||
If your browser is on a different machine then exit and re-run this | ||
application with the command-line parameter | ||
|
||
--noauth_local_webserver | ||
|
||
Authentication successful. | ||
XX:XX PM Scanning files on local disk. | ||
XX:XX PM Scanned 500 files. | ||
XX:XX PM Scanned 1000 files. | ||
XX:XX PM Cloning 1220 application files. | ||
XX:XX PM Uploading 28 files and blobs. | ||
XX:XX PM Uploaded 28 files and blobs. | ||
XX:XX PM Compilation starting. | ||
XX:XX PM Compilation completed. | ||
XX:XX PM Starting deployment. | ||
XX:XX PM Checking if deployment succeeded. | ||
XX:XX PM Will check again in 1 seconds. | ||
XX:XX PM Checking if deployment succeeded. | ||
XX:XX PM Will check again in 2 seconds. | ||
XX:XX PM Checking if deployment succeeded. | ||
XX:XX PM Will check again in 4 seconds. | ||
XX:XX PM Checking if deployment succeeded. | ||
XX:XX PM Deployment successful. | ||
XX:XX PM Checking if updated app version is serving. | ||
XX:XX PM Completed update of app: positive-cocoa-90213, version: 1 | ||
XX:XX PM Uploading cron entries. | ||
``` | ||
|
||
- 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. | ||
- Click on Tools > Logs, and ensure the application is behaving well. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
flask | ||
google-api-python-client | ||
flask==0.12.4 | ||
google-api-python-client==1.6.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters