-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
57 lines (45 loc) · 1.86 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# App Engine configuration, see:
# https://developers.google.com/appengine/docs/python/config/appconfig
#############################################################################
#########Open in http://localhost:8080/web/darkglass.html in dartium! (Or generate javascript and then the same in any browser).
############Redeploy: /opt/google_appengine/appcfg.py update --oauth2 .
#############################################################################
# The version number should be something like rSVN_REVISION.
version: 1
# 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: dark-glass
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:
- url: /
static_files: web/darkglass.html
upload: web/darkglass.html
secure: never
#- url: /web
# static_files: web
# upload: web
# secure: never
- url: /(.*\.(html|js|png|css|dart|json))
static_files: \1
upload: (.*\.(html|js|png|css|dart|json))
secure: never
- url: .*
static_files: web/not_found.html
upload: web/not_found.html
secure: never