Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 87 lines (74 sloc) 2.033 kb
7e84231 @volpino committing original project
authored
1 # For Google App Engine deployment, copy this file to app.yaml
2 # and edit as required
3 # See http://code.google.com/appengine/docs/python/config/appconfig.html
4 # and http://web2py.com/book/default/chapter/11?search=app.yaml
5
6 application: web2py
7 version: 1
8 api_version: 1
9
10 # use this line for Python 2.5
11 #
12 #runtime: python
13
14 # use these lines for Python 2.7
15 # upload app with: appcfg.py update web2py (where 'web2py' is web2py's root directory)
16 #
17 runtime: python27
18 threadsafe: true # true for WSGI & concurrent requests (Python 2.7 only)
19
20 default_expiration: "24h" # for static files
21
22 handlers:
23
24 - url: /(?P<a>.+?)/static/(?P<b>.+)
25 static_files: applications/\1/static/\2
26 upload: applications/(.+?)/static/(.+)
27 secure: optional
28
29 - url: /favicon.ico
30 static_files: applications/welcome/static/favicon.ico
31 upload: applications/welcome/static/favicon.ico
32
33 - url: /robots.txt
34 static_files: applications/welcome/static/robots.txt
35 upload: applications/welcome/static/robots.txt
36
37 - url: .*
38 # script: gaehandler.py # CGI
39 script: gaehandler.wsgiapp # WSGI (Python 2.7 only)
40 secure: optional
41
42 admin_console:
43 pages:
44 - name: Appstats
45 url: /_ah/stats
46
47 skip_files: |
48 ^(.*/)?(
49 (app\.yaml)|
50 (app\.yml)|
51 (index\.yaml)|
52 (index\.yml)|
53 (#.*#)|
54 (.*~)|
55 (.*\.py[co])|
56 (.*/RCS/.*)|
57 (\..*)|
58 (applications/(admin|examples)/.*)|
59 ((admin|examples|welcome)\.(w2p|tar))|
60 (applications/.*?/(cron|databases|errors|cache|sessions)/.*)|
61 ((logs|scripts)/.*)|
62 (anyserver\.py)|
63 (web2py\.py)|
64 ((cgi|fcgi|modpython|wsgi)handler\.py)|
65 (epydoc\.(conf|css))|
66 (httpserver\.log)|
67 (logging\.example\.conf)|
68 (route[rs]\.example\.py)|
69 (setup_(app|exe)\.py)|
70 (splashlogo\.gif)|
71 (parameters_\d+\.py)|
72 (options_std.py)|
73 (gluon/tests/.*)|
74 (gluon/(rocket|winservice)\.py)|
75 (contrib/(gateways|markdown|memcache|pymysql)/.*)|
76 (contrib/(populate|taskbar_widget)\.py)|
77 (google_appengine/.*)|
78 (.*\.(bak|orig))|
79 )$
80
81 builtins:
82 - remote_api: on
83 - datastore_admin: on
84 - appstats: on
85 - admin_redirect: on
86 - deferred: on
Something went wrong with that request. Please try again.