diff options
| author | Igor Minar | 2012-08-20 08:28:04 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-08-24 15:00:36 -0700 |
| commit | 60a12b416104697d48a465bffbcfefbec35f06ea (patch) | |
| tree | 90ef6410ab0bcd569a7d746e6d55f36eb6020308 /docs/src/templates/app.yaml | |
| parent | cd7e58ba41eb886be2195e886f57521c568cb0a4 (diff) | |
| download | angular.js-60a12b416104697d48a465bffbcfefbec35f06ea.tar.bz2 | |
chore(docs): use GAE and Google CDN for docs
Short summary: if you use local node server everything should work as before,
if you use GAE, everything should work now as well, but we pull assets from CDN.
- GAE doesn't support ':' in filenames, so I had to replace it with '_'
but only in the filename, all servers were reconfigured to rewrite the
urls from : to _ when doing file lookup
- We now pull angular assets from google CDN when deployed on GAE (locally
or in production). When running on a non GAE server we pull assets from
../ directory as before
- Since only certain versions of Angular are available on CDN and we want
to be able to autodeploy docs, I had to pin down the Angular files
to a "stable" version when running on GAE
Diffstat (limited to 'docs/src/templates/app.yaml')
| -rw-r--r-- | docs/src/templates/app.yaml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/docs/src/templates/app.yaml b/docs/src/templates/app.yaml new file mode 100644 index 00000000..c204b150 --- /dev/null +++ b/docs/src/templates/app.yaml @@ -0,0 +1,66 @@ +application: docs-angularjs-org +version: 1 +runtime: python27 +api_version: 1 +threadsafe: yes +default_expiration: "2h" + +handlers: +- url: / + static_files: index.html + upload: index.html + +- url: /appcache.manifest + static_files: appcache.manifest + upload: appcache\.manifest + +- url: /docs-scenario.html + static_files: docs-scenario.html + upload: docs-scenario\.html + +- url: /docs-scenario.js + static_files: docs-scenario.js + upload: docs-scenario\.js + +- url: /favicon\.ico + static_files: favicon.ico + upload: favicon\.ico + +- url: /robots.txt + static_files: robots.txt + upload: robots\.txt + +- url: /sitemap.xml + static_files: sitemap.xml + upload: sitemap\.xml + +- url: /css + static_dir: css + +- url: /font + static_dir: font + +- url: /img + static_dir: img + +- url: /js + static_dir: js + +- url: /partials/(.+):(.+) + static_files: partials/\1_\2 + upload: partials/.* + +- url: /partials + static_dir: partials + +- url: /syntaxhighlighter + static_dir: syntaxhighlighter + +- url: /.* + static_files: index.html + upload: index.html + + +libraries: +- name: webapp2 + version: "2.5.1" |
