-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathapp.yaml
119 lines (97 loc) · 2.32 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# application: emgeosci
# version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
# favicon
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
# all css
- url: /(.*\.css)
mime_type: text/css
static_files: _build/html/\1
upload: _build/html/(.*\.css)
# webfonts
- url: /(.*\.(eot|svg|ttf|woff|woff2|otf))
static_files: _build/html/\1
upload: _build/html/(.*\.(eot|svg|ttf|woff|woff2|otf))
# javascript
- url: /(.*\.js)
mime_type: text/javascript
static_files: _build/html/\1
upload: _build/html/(.*\.js)
# plain text source
- url: /(.*\.txt)
mime_type: text/plain
static_files: _build/html/\1
upload: _build/html/(.*\.txt)
# python source files
- url: /(.*\.py)
static_files: _build/html/\1
upload: _build/html/(.*\.py)
# images
- url: /_images/(.*\.(gif|png|jpg|ico))
static_files: _build/html/_images/\1
upload: _build/html/_images/(.*\.(gif|png|jpg|ico))
# plot directive images
- url: /(.*\.(gif|png|jpg|ico|pdf))
static_files: _build/html/\1
upload: _build/html/(.*\.(gif|png|jpg|ico|pdf))
# redirect en/latest traffic
- url: /en/latest/(.*\.html)
script: emgeosci.app
# raw html
- url: /(.*\.html)
mime_type: text/html
static_files: _build/html/\1
upload: _build/html/(.*\.html)
- url: /error.html
static_files: _templates/error.html
upload: _templates/error.html
# serve index files
- url: /(.+)/
script: emgeosci.app
# static_files: _build/html/\1/index.html
# upload: _build/html/(.+)/index.html
- url: /(.+)
script: emgeosci.app
# static_files: _build/html/\1/index.html
# upload: _build/html/(.+)/index.html
# - url: /
# static_files: _build/html/index.html
# upload: _build/html/index.html
# - url: /.*
# static_files: _templates/error.html
# upload: _templates/error.html
- url: .*
script: emgeosci.app
# Recommended file skipping declaration from the GAE tutorials
skip_files:
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?tests$
- ^(.*/)?test$
- ^test/(.*/)?
- ^COPYING.LESSER
- ^README\..*
- \.gitignore
- ^\.git/.*
- \.*\.lint$
- ^(.*/)?.*\.doctree$
- ^(.*/)?doctrees/.*
libraries:
- name: webapp2
version: "2.5.2"
- name: PIL
version: "1.1.7"
- name: numpy
version: "latest"
- name: jinja2
version: "latest"