Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Getting started with the Performance Dashboard | 1 # Getting started with the Performance Dashboard |
| 2 | 2 |
| 3 ## Prerequisites | 3 ## Prerequisites |
| 4 | 4 |
| 5 Running the tests, running the local server and | 5 Running the tests, running the local server, and deploying depend on having |
| 6 deploying all depends on having the [the App Engine | 6 the [the Google Cloud SDK](https://cloud.google.com/sdk/downloads). |
| 7 SDK](https://cloud.google.com/appengine/downloads). | |
| 8 | |
| 9 After downloading and unpacking, you should add the path to the SDK to `PATH`. | |
| 10 | 7 |
| 11 ## Running the tests | 8 ## Running the tests |
| 12 | 9 |
| 13 To run the Python unit tests, use `bin/run_py_tests`. To run the front-end | 10 To run the Python unit tests, use `bin/run_py_tests`. To run the front-end |
| 14 component tests, use `bin/run_dev_server_tests`. | 11 component tests, use `bin/run_dev_server_tests`. |
| 15 | 12 |
| 16 ## Running a local instance | 13 ## Running a local instance |
| 17 | 14 |
| 18 Run `bin/dev_server`; this sets up a temporary directory, adds links to | 15 Run `bin/dev_server`; this sets up a temporary directory, adds links to |
| 19 required libraries, and calls `dev_appserver.py` on that directory. By | 16 required libraries, and calls `dev_appserver.py` on that directory. By |
| 20 default, this starts a server on [localhost:8080](http://localhost:8080/). | 17 default, this starts a server on [localhost:8080](http://localhost:8080/). |
| 21 | 18 |
| 22 To load sample graph or alert data from production, navigate to | 19 To load sample graph or alert data from production, navigate to |
| 23 [/load\_from\_prod](http://localhost:8080/load_from_prod). | 20 [/load\_from\_prod](http://localhost:8080/load_from_prod). |
| 24 | 21 |
| 25 ## Deploying to production | 22 ## Deploying to production |
| 26 | 23 |
| 27 To deploy, you can run `bin/deploy`, which prepares the | 24 To deploy, you can run `bin/deploy`, which prepares the |
| 28 code to be deployed and runs `appcfg.py`. Note that this | 25 code to be deployed and runs `gcloud app deploy`. Note that this |
|
sullivan
2017/02/20 14:58:36
Isn't it now `gcloud app deploy <filename.yaml>`?
dtu
2017/02/22 01:09:40
Done. (`/bin/deploy` with no parameters deploys th
| |
| 29 doesn't set the new version as the default version; to do | 26 doesn't set the new version as the default version; to do |
| 30 this, you can use the versions page on the [Google Developers | 27 this, you can use the versions page on the [Google Developers |
| 31 Console](https://console.developers.google.com/) if you have edit or | 28 Console](https://console.developers.google.com/) if you have edit or |
| 32 owner permissions for the App Engine project; otherwise if you want to | 29 owner permissions for the App Engine project; otherwise if you want to |
| 33 request to set a new default version for chromeperf.appspot.com you can | 30 request to set a new default version for chromeperf.appspot.com you can |
| 34 contact chrome-perf-dashboard-team@google.com. | 31 contact chrome-perf-dashboard-team@google.com. |
| 35 | 32 |
| 36 After deploying, there is a checklist to verify that no major functionality | 33 After deploying, there is a checklist to verify that no major functionality |
| 37 has regressed: [deploy checklist](/dashboard/docs/deploy-checklist.md). | 34 has regressed: [deploy checklist](/dashboard/docs/deploy-checklist.md). |
| 38 | 35 |
| 39 WARNING: Some changes to production may not be easily reversible; for | 36 WARNING: Some changes to production may not be easily reversible; for |
| 40 example `appcfg.py ... vacuum_indexes` will remove datastore indexes that | 37 example `appcfg.py ... vacuum_indexes` will remove datastore indexes that |
| 41 are not in your local index.yaml file, which may take more than 24 hours, | 38 are not in your local index.yaml file, which may take more than 24 hours, |
| 42 and will disable any queries that depend on those indexes. | 39 and will disable any queries that depend on those indexes. |
| 43 | 40 |
| 44 ## Where to find documentation | 41 ## Where to find documentation |
| 45 | 42 |
| 46 - [App Engine](https://developers.google.com/appengine/docs/python/) | 43 - [App Engine](https://developers.google.com/appengine/docs/python/) |
| 47 - [Polymer](http://www.polymer-project.org/) (web component framework) | 44 - [Polymer](http://www.polymer-project.org/) (web component framework) |
| 48 - [Flot](http://flotcharts.org/) (JS chart plotting library) | 45 - [Flot](http://flotcharts.org/) (JS chart plotting library) |
| 49 - [App engine stubs](https://developers.google.com/appengine/docs/python/tools/l ocalunittesting) | 46 - [App engine stubs](https://developers.google.com/appengine/docs/python/tools/l ocalunittesting) |
| 50 - [Python mock](http://www.voidspace.org.uk/python/mock/) | 47 - [Python mock](http://www.voidspace.org.uk/python/mock/) |
| OLD | NEW |