-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
52 lines (41 loc) · 1.25 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
# For Google App Engine deployment, copy this file to app.yaml
# and edit as required
# See http://code.google.com/appengine/docs/python/config/appconfig.html
# and http://web2py.com/book/default/chapter/11?search=app.yaml
application: tharunionline
version: 2
api_version: 1
# use this line for Python 2.5
#
# runtime: python
# use these lines for Python 2.7
# upload app with: appcfg.py update web2py (where 'web2py' is web2py's root directory)
#
runtime: python27
threadsafe: false # true for WSGI & concurrent requests (Python 2.7 only)
default_expiration: "960h" # for static files
handlers:
- url: /(?P<a>.+?)/static/(?P<b>.+)
static_files: applications/\1/static/\2
upload: applications/(.+?)/static/(.+)
secure: optional
- url: /favicon.ico
static_files: applications/init/static/img/logo.png
upload: applications/init/static/img/logo.png
- url: /robots.txt
static_files: applications/init/static/robots.txt
upload: applications/init/static/robots.txt
- url: .*
script: gaehandler.py # CGI
# script: gaehandler.wsgiapp # WSGI (Python 2.7 only)
secure: optional
admin_console:
pages:
- name: Appstats
url: /_ah/stats
builtins:
- remote_api: on
#- datastore_admin: on
- appstats: on
- admin_redirect: on
- deferred: on