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

Unified Diff: dart/site/try/app.yaml

Issue 133893008: Add GYP build rule for Try Dart! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments from Kasper and Martin Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart ('k') | dart/site/try/build_try.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/app.yaml
diff --git a/dart/site/try/app.yaml b/dart/site/try/app.yaml
index 4d6864d454b49e88da72d0d5f2cd728c2065560c..24ae3106ff7aab3f8f099160a2d27c567fa2444a 100644
--- a/dart/site/try/app.yaml
+++ b/dart/site/try/app.yaml
@@ -5,11 +5,26 @@
# App Engine configuration, see:
# https://developers.google.com/appengine/docs/python/config/appconfig
+# The version number should be something like rSVN_REVISION.
+version: remember to edit app.yaml before deploying
+# This version name is used to create a new host, for example,
+# http://r31824.try-dart-lang.appspot.com/, which can be tested before going
+# live at http://try.dartlang.org/. This is controlled from
+# https://appengine.google.com/deployment?&app_id=s~try-dart-lang
+
application: try-dart-lang
-version: 5-sdk1-0
runtime: python27
api_version: 1
threadsafe: yes
+
+# Set "Cache-Control" and "Expires" HTTP headers to only cache for one second.
+# We do this because we frequently push new changes and rely on AppCache for
+# caching. Once files are installed in AppCache, the site launches
+# immediately.
+#
+# Problem: PageSpeed Insights doesn't realize that we use AppCache and keeps
+# nagging about caching.
+# Solution: Ignore its advice about "Leverage browser caching".
default_expiration: 1s
handlers:
@@ -34,12 +49,15 @@ handlers:
upload: (.*\.(html|js|png|css|dart|json))
secure: never
-- url: /css/fonts/
- static_dir: font
+- url: /css/fonts/fontawesome-webfont.woff
+ static_files: fontawesome-webfont.woff
+ upload: fontawesome-webfont.woff
secure: never
-error_handlers:
- - file: static/not_found.html
+- url: .*
+ static_files: not_found.html
+ upload: not_found.html
+ secure: never
libraries:
- name: webapp2
« no previous file with comments | « dart/sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart ('k') | dart/site/try/build_try.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698