OLD | NEW |
1 # Appengine Frontend for Clovis | 1 # Appengine Frontend for Clovis |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Usage | 5 ## Usage |
6 | 6 |
7 Visit the application URL in your browser, and upload a JSON dictionary with the | 7 Visit the application URL in your browser, and upload a JSON dictionary with the |
8 following keys: | 8 following keys: |
9 | 9 |
10 - `action` (string): the action to perform. Only `trace` and `report` are | 10 - `action` (string): the action to perform. Only `trace` and `report` are |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 ### Deploy | 118 ### Deploy |
119 | 119 |
120 ```shell | 120 ```shell |
121 # Install dependencies in the lib/ directory. | 121 # Install dependencies in the lib/ directory. |
122 pip install -r requirements.txt -t lib | 122 pip install -r requirements.txt -t lib |
123 # Deploy. | 123 # Deploy. |
124 gcloud preview app deploy app.yaml | 124 gcloud preview app deploy app.yaml |
125 ``` | 125 ``` |
126 | 126 |
| 127 To deploy to a staging/test version of the server, you can do: |
| 128 |
| 129 ```shell |
| 130 gcloud preview app deploy --no-promote --version $MY_VERSION |
| 131 ``` |
| 132 |
| 133 where `MY_VERSION` can be something like `staging` or something more unique to |
| 134 ensure there is no name collision. You can then access the application live on |
| 135 the web by prefixing the URL of the service with `$MY_VERSION-dot-`. |
| 136 |
127 ### Updating the Database Schema | 137 ### Updating the Database Schema |
128 | 138 |
129 When a change is made to the dictionary returned by report.py, the BigQuery | 139 When a change is made to the dictionary returned by report.py, the BigQuery |
130 database schema must be updated accordingly. | 140 database schema must be updated accordingly. |
131 | 141 |
132 To update the schema, run: | 142 To update the schema, run: |
133 | 143 |
134 ```shell | 144 ```shell |
135 bq update \ | 145 bq update \ |
136 --schema \ | 146 --schema \ |
(...skipping 15 matching lines...) Expand all Loading... |
152 | 162 |
153 | 163 |
154 [1]: https://cloud.google.com/sdk | 164 [1]: https://cloud.google.com/sdk |
155 [2]: https://cloud.google.com/appengine/docs/python/taskqueue | 165 [2]: https://cloud.google.com/appengine/docs/python/taskqueue |
156 [3]: https://cloud.google.com/appengine/docs/python/config/queue | 166 [3]: https://cloud.google.com/appengine/docs/python/config/queue |
157 [4]: ../backend/README.md#Deploy-the-code | 167 [4]: ../backend/README.md#Deploy-the-code |
158 [5]: https://cloud.google.com/appengine/docs/python | 168 [5]: https://cloud.google.com/appengine/docs/python |
159 [6]: http://flask.pocoo.org | 169 [6]: http://flask.pocoo.org |
160 [7]: #Updating-the-Database-Schema | 170 [7]: #Updating-the-Database-Schema |
161 [8]: https://bigquery.cloud.google.com | 171 [8]: https://bigquery.cloud.google.com |
OLD | NEW |