forked from web2py/web2py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
56 lines (44 loc) · 1.35 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
# For Google App Engine deployment, copy this file to app.yaml
# and edit as required
# See:
# - https://cloud.google.com/appengine/docs/flexible/reference/app-yaml?tab=python
# - http://www.web2py.com/book/default/chapter/13#Deploying-on-Google-App-Engine
#
# gcloud init
# cp requirements.gae.txt requirements.txt
# gcloud app deploy
#
runtime: python311
entrypoint: gunicorn -b :$PORT gluon:wsgibase
default_expiration: "24h" # for static files
handlers:
# Warning! Static mapping - below - isn't compatible with
# the parametric router's language logic.
# You cannot use them together.
- url: /(.+?)/static/_(\d+\.\d+\.\d+)\/(.+)
static_files: applications/\1/static/\3
upload: applications/(.+?)/static/(.+)
secure: optional
expiration: "365d"
- url: /(.+?)/static/(.+)
static_files: applications/\1/static/\2
upload: applications/(.+?)/static/(.+)
secure: optional
- url: /favicon.ico
static_files: applications/welcome/static/favicon.ico
upload: applications/welcome/static/favicon.ico
- url: /robots.txt
static_files: applications/welcome/static/robots.txt
upload: applications/welcome/static/robots.txt
- url: .*
script: gaehandler.wsgiapp # WSGI (Python 2.7 only)
secure: optional
admin_console:
pages:
- name: Appstats
url: /_ah/stats
builtins:
- remote_api: on
- appstats: on
- admin_redirect: on
- deferred: on