README 2.5 KB

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