Skip to content

Commit 8953118

Browse files
committed
Switch to Python 2.7 runtime.
1 parent ac3d6e3 commit 8953118

2 files changed

Lines changed: 26 additions & 12 deletions

File tree

extras/appengine/app.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
application: sqlformat
2-
version: dev
3-
runtime: python
1+
application: sqlformat-hrd
2+
version: dev27
3+
runtime: python27
44
api_version: 1
5+
threadsafe: true
56

67
default_expiration: 7d # This is good for images, which never change
78

@@ -22,15 +23,32 @@ handlers:
2223
- url: /static
2324
static_dir: static
2425

25-
- url: /_ereporter.*
26-
script: $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py
27-
login: admin
28-
2926
- url: .*
30-
script: main.py
27+
script: main.app
3128

3229
builtins:
3330
- appstats: on
3431

32+
skip_files:
33+
- ^(.*/)?app\.yaml
34+
- ^(.*/)?app\.yml
35+
- ^(.*/)?index\.yaml
36+
- ^(.*/)?index\.yml
37+
- ^(.*/)?#.*#
38+
- ^(.*/)?.*~
39+
- ^(.*/)?.*\.py[co]
40+
- ^(.*/)?.*/RCS/.*
41+
- ^(.*/)?\..*
42+
- ^(.*/)?jinja2*
43+
3544
inbound_services:
3645
- warmup
46+
47+
libraries:
48+
- name: jinja2
49+
version: latest
50+
- name: markupsafe
51+
version: latest
52+
- name: setuptools
53+
version: latest
54+

extras/appengine/main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import os
44
import sys
55

6-
from google.appengine.ext.webapp.util import run_wsgi_app
7-
86
LIB_DIR = os.path.join(os.path.dirname(__file__), 'lib')
97

108
if LIB_DIR not in sys.path:
@@ -37,5 +35,3 @@ def __call__(self, environ, start_response):
3735
app.config.from_object(config)
3836

3937
app = EreporterMiddleware(app)
40-
41-
run_wsgi_app(app)

0 commit comments

Comments
 (0)