Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Side by Side Diff: dashboard/docs/getting-set-up.md

Issue 2701113002: Migrate to the Google Cloud SDK. (Closed)
Patch Set: Work for both old and new SDKs. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « dashboard/dashboard/__init__.py ('k') | dashboard/pinpoint.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 code to be deployed and
28 code to be deployed and runs `appcfg.py`. Note that this 25 runs `gcloud app deploy`. If you modify any `*.yaml` files, you can pass them as
29 doesn't set the new version as the default version; to do 26 parameters to `bin/deploy` to deploy the updated configs.
30 this, you can use the versions page on the [Google Developers 27
31 Console](https://console.developers.google.com/) if you have edit or 28 When deploying services, `bin/deploy` doesn't set the new version as the default
32 owner permissions for the App Engine project; otherwise if you want to 29 version; to do this, you can use the Versions page on the [Google Developers
33 request to set a new default version for chromeperf.appspot.com you can 30 Console](https://console.developers.google.com/) if you have edit or owner
34 contact chrome-perf-dashboard-team@google.com. 31 permissions for the App Engine project; otherwise if you want to request to set
32 a new default version for chromeperf.appspot.com you can contact
33 chrome-perf-dashboard-team@google.com.
35 34
36 After deploying, there is a checklist to verify that no major functionality 35 After deploying, there is a checklist to verify that no major functionality
37 has regressed: [deploy checklist](/dashboard/docs/deploy-checklist.md). 36 has regressed: [deploy checklist](/dashboard/docs/deploy-checklist.md).
38 37
39 WARNING: Some changes to production may not be easily reversible; for 38 WARNING: Some changes to production may not be easily reversible; for
40 example `appcfg.py ... vacuum_indexes` will remove datastore indexes that 39 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, 40 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. 41 and will disable any queries that depend on those indexes.
43 42
44 ## Where to find documentation 43 ## Where to find documentation
45 44
46 - [App Engine](https://developers.google.com/appengine/docs/python/) 45 - [App Engine](https://developers.google.com/appengine/docs/python/)
47 - [Polymer](http://www.polymer-project.org/) (web component framework) 46 - [Polymer](http://www.polymer-project.org/) (web component framework)
48 - [Flot](http://flotcharts.org/) (JS chart plotting library) 47 - [Flot](http://flotcharts.org/) (JS chart plotting library)
49 - [App engine stubs](https://developers.google.com/appengine/docs/python/tools/l ocalunittesting) 48 - [App engine stubs](https://developers.google.com/appengine/docs/python/tools/l ocalunittesting)
50 - [Python mock](http://www.voidspace.org.uk/python/mock/) 49 - [Python mock](http://www.voidspace.org.uk/python/mock/)
OLDNEW
« no previous file with comments | « dashboard/dashboard/__init__.py ('k') | dashboard/pinpoint.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698