[42bd667] | 1 | # For Google App Engine deployment, copy this file to app.yaml |
---|
| 2 | # and edit as required |
---|
| 3 | # See https://cloud.google.com/appengine/docs/standard/python/config/appref |
---|
| 4 | # and http://www.web2py.com/book/default/chapter/13#Deploying-on-Google-App-Engine |
---|
| 5 | |
---|
| 6 | application: yourappname |
---|
| 7 | version: 1 |
---|
| 8 | api_version: 1 |
---|
| 9 | |
---|
| 10 | # use these lines for Python 2.7 |
---|
| 11 | # upload app with: appcfg.py update web2py (where 'web2py' is web2py's root directory) |
---|
| 12 | # |
---|
| 13 | runtime: python27 |
---|
| 14 | threadsafe: true # true for WSGI & concurrent requests (Python 2.7 only) |
---|
| 15 | |
---|
| 16 | default_expiration: "24h" # for static files |
---|
| 17 | |
---|
| 18 | handlers: |
---|
| 19 | |
---|
| 20 | # Warning! Static mapping - below - isn't compatible with |
---|
| 21 | # the parametric router's language logic. |
---|
| 22 | # You cannot use them together. |
---|
| 23 | |
---|
| 24 | - url: /(.+?)/static/_(\d+\.\d+\.\d+)\/(.+) |
---|
| 25 | static_files: applications/\1/static/\3 |
---|
| 26 | upload: applications/(.+?)/static/(.+) |
---|
| 27 | secure: optional |
---|
| 28 | expiration: "365d" |
---|
| 29 | |
---|
| 30 | - url: /(.+?)/static/(.+) |
---|
| 31 | static_files: applications/\1/static/\2 |
---|
| 32 | upload: applications/(.+?)/static/(.+) |
---|
| 33 | secure: optional |
---|
| 34 | |
---|
| 35 | - url: /favicon.ico |
---|
| 36 | static_files: applications/welcome/static/favicon.ico |
---|
| 37 | upload: applications/welcome/static/favicon.ico |
---|
| 38 | |
---|
| 39 | - url: /robots.txt |
---|
| 40 | static_files: applications/welcome/static/robots.txt |
---|
| 41 | upload: applications/welcome/static/robots.txt |
---|
| 42 | |
---|
| 43 | - url: .* |
---|
| 44 | script: gaehandler.wsgiapp # WSGI (Python 2.7 only) |
---|
| 45 | secure: optional |
---|
| 46 | |
---|
| 47 | admin_console: |
---|
| 48 | pages: |
---|
| 49 | - name: Appstats |
---|
| 50 | url: /_ah/stats |
---|
| 51 | |
---|
| 52 | skip_files: | |
---|
| 53 | ^(.*/)?( |
---|
| 54 | (app\.yaml)| |
---|
| 55 | (app\.yml)| |
---|
| 56 | (index\.yaml)| |
---|
| 57 | (index\.yml)| |
---|
| 58 | (#.*#)| |
---|
| 59 | (.*~)| |
---|
| 60 | (.*\.py[co])| |
---|
| 61 | (.*/RCS/.*)| |
---|
| 62 | (\..*)| |
---|
| 63 | (applications/examples/.*)| |
---|
| 64 | ((examples|welcome)\.(w2p|tar))| |
---|
| 65 | (applications/.*?/(cron|databases|errors|cache|sessions)/.*)| |
---|
| 66 | ((logs|scripts)/.*)| |
---|
| 67 | (anyserver\.py)| |
---|
| 68 | (web2py\.py)| |
---|
| 69 | ((cgi|fcgi|modpython|wsgi)handler\.py)| |
---|
| 70 | (epydoc\.(conf|css))| |
---|
| 71 | (httpserver\.log)| |
---|
| 72 | (logging\.example\.conf)| |
---|
| 73 | (route[rs]\.example\.py)| |
---|
| 74 | (setup_(app|exe)\.py)| |
---|
| 75 | (splashlogo\.gif)| |
---|
| 76 | (parameters_\d+\.py)| |
---|
| 77 | (options_std.py)| |
---|
| 78 | (gluon/tests/.*)| |
---|
| 79 | (gluon/rocket\.py)| |
---|
| 80 | (contrib/(gateways|markdown|memcache|pymysql)/.*)| |
---|
| 81 | (contrib/(populate|taskbar_widget)\.py)| |
---|
| 82 | (google_appengine/.*)| |
---|
| 83 | (.*\.(bak|orig))| |
---|
| 84 | )$ |
---|
| 85 | |
---|
| 86 | builtins: |
---|
| 87 | - remote_api: on |
---|
| 88 | - appstats: on |
---|
| 89 | - admin_redirect: on |
---|
| 90 | - deferred: on |
---|