app.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. application: blockly-demo
  2. version: 1
  3. runtime: python27
  4. api_version: 1
  5. threadsafe: no
  6. handlers:
  7. # Redirect obsolete URLs.
  8. # Blockly files moved from /blockly to /static on 5 Dec 2012.
  9. - url: /blockly/.*
  10. static_files: redirect.html
  11. upload: redirect.html
  12. # Code, Maze and Turtle moved from demos on 29 Dec 2012.
  13. - url: /static/demos/(maze|turtle)/.*
  14. static_files: redirect.html
  15. upload: redirect.html
  16. # Apps was disbanded on 20 Nov 2014.
  17. - url: /static/apps/.*
  18. static_files: redirect.html
  19. upload: redirect.html
  20. # Storage API.
  21. - url: /storage
  22. script: storage.py
  23. secure: always
  24. - url: /storage\.js
  25. static_files: storage.js
  26. upload: storage\.js
  27. secure: always
  28. # Blockly files.
  29. - url: /static
  30. static_dir: static
  31. secure: always
  32. # Closure library for uncompiled Blockly.
  33. - url: /closure-library
  34. static_dir: closure-library
  35. secure: always
  36. # Redirect for root directory.
  37. - url: /
  38. script: index_redirect.py
  39. secure: always
  40. # Favicon.
  41. - url: /favicon\.ico
  42. static_files: favicon.ico
  43. upload: favicon\.ico
  44. secure: always
  45. expiration: "30d"
  46. # Apple icon.
  47. - url: /apple-touch-icon\.png
  48. static_files: apple-touch-icon.png
  49. upload: apple-touch-icon\.png
  50. secure: always
  51. expiration: "30d"
  52. # robot.txt
  53. - url: /robots\.txt
  54. static_files: robots.txt
  55. upload: robots\.txt
  56. secure: always
  57. skip_files:
  58. # App Engine default patterns.
  59. - ^(.*/)?#.*#$
  60. - ^(.*/)?.*~$
  61. - ^(.*/)?.*\.py[co]$
  62. - ^(.*/)?.*/RCS/.*$
  63. - ^(.*/)?\..*$
  64. # Custom skip patterns.
  65. - ^static/appengine/.*$
  66. - ^static/demos/plane/soy/.+\.jar$
  67. - ^static/demos/plane/template.soy$
  68. - ^static/demos/plane/xlf/.*$
  69. - ^static/i18n/.*$
  70. - ^static/msg/json/.*$
  71. - ^.+\.soy$