- add sources.
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / gonacl_appengine / README
1 GoNaCl App Engine
2 =================
3
4 This is a new App Engine Python 2.7 application for http://gonacl.com
5
6 At this time it presents the existing functionality of redirecting
7 to http://developers.google.com/native-client/
8
9 Also, there are PNaCl demos added at ``/static/pnacl-demo-<name>/index.html``
10
11
12 To Run Locally
13 --------------
14
15 1. Download the App Engine SDK (https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python)
16
17 2. Run ``<path/to/app/engine>/dev_appserver.py app.yaml``
18
19 3. Navigate in your browser to http://localhost:8080/static/
20
21
22 To Update App Engine (HTML/JS)
23 ------------------------------
24
25 To upload, run this from the root directory of the App Engine SDK::
26
27   $ ./appcfg.py update <path-to-this-dir>
28
29 It probably makes sense to bump the application version in app.yaml for each
30 upload, as it lets us use App Engine's versioning. The newly uploaded version
31 can be tried before actually being activated, by going to the "Versions"
32 section on the App Engine dashboard. Note that the newly uploaded version only
33 becomes active when it's set as the "default" version in the dashboard.
34
35
36 To Update the Binary files (.pexe/.nmf)
37 ---------------------------------------
38
39 The build outputs are automatically uploaded to Google Cloud Storage
40 (``commondatastorage.googleapis.com``) by the linux SDK builder
41 (linux-sdk-multi).
42 To publish a new version:
43
44 1. Make and land your change to the demo, found in ``src/<demo-name>``.
45
46 2. Wait for the linux SDK builder to build and upload your change. You can see
47    what's available in the browser at::
48
49      http://gsdview.appspot.com/gonacl/demos/continuous/
50
51    Or by using gsutil::
52
53      $ gsutil ls gs://gonacl/demos/continuous/
54
55 3. Use 'make publish REVISION=<REV>' in the ``src`` directory to publish the
56    revision.
57
58 4. Update the URLs to use this new revision in each demo's JavaScript files:
59
60   * For ``earth``, this is found in ``/static/pnacl-demo-earth/example.js``, in
61     the ``getDataURL`` function.
62   * For ``bullet``, this is found in ``/static/pnacl-demo-bullet/main.js``, in
63     the ``pageDidLoad`` function.
64   * For ``lua``, this is found in ``/static/pnacl-demo-lua/lua.js``.
65
66 5. Land a CL with these changes.
67
68 6. Update App Engine, using the instructions above.