diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2011-12-06 13:13:50 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2011-12-06 13:13:50 +0100 |
| commit | 8953118a6dc4618ff8eb44a7cd0ff427de198c2f (patch) | |
| tree | 023f2b6f2f1b61b490e1c8ba62e05ee440d52311 | |
| parent | ac3d6e312aeea0253dfed9f333e2f584f7317649 (diff) | |
| download | sqlparse-8953118a6dc4618ff8eb44a7cd0ff427de198c2f.tar.gz | |
Switch to Python 2.7 runtime.
| -rw-r--r-- | extras/appengine/app.yaml | 34 | ||||
| -rw-r--r-- | extras/appengine/main.py | 4 |
2 files changed, 26 insertions, 12 deletions
diff --git a/extras/appengine/app.yaml b/extras/appengine/app.yaml index 6c1de16..b7cf550 100644 --- a/extras/appengine/app.yaml +++ b/extras/appengine/app.yaml @@ -1,7 +1,8 @@ -application: sqlformat -version: dev -runtime: python +application: sqlformat-hrd +version: dev27 +runtime: python27 api_version: 1 +threadsafe: true default_expiration: 7d # This is good for images, which never change @@ -22,15 +23,32 @@ handlers: - url: /static static_dir: static -- url: /_ereporter.* - script: $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py - login: admin - - url: .* - script: main.py + script: main.app builtins: - appstats: on +skip_files: +- ^(.*/)?app\.yaml +- ^(.*/)?app\.yml +- ^(.*/)?index\.yaml +- ^(.*/)?index\.yml +- ^(.*/)?#.*# +- ^(.*/)?.*~ +- ^(.*/)?.*\.py[co] +- ^(.*/)?.*/RCS/.* +- ^(.*/)?\..* +- ^(.*/)?jinja2* + inbound_services: - warmup + +libraries: +- name: jinja2 + version: latest +- name: markupsafe + version: latest +- name: setuptools + version: latest + diff --git a/extras/appengine/main.py b/extras/appengine/main.py index 4cabba8..ae4d251 100644 --- a/extras/appengine/main.py +++ b/extras/appengine/main.py @@ -3,8 +3,6 @@ import os import sys -from google.appengine.ext.webapp.util import run_wsgi_app - LIB_DIR = os.path.join(os.path.dirname(__file__), 'lib') if LIB_DIR not in sys.path: @@ -37,5 +35,3 @@ class EreporterMiddleware(object): app.config.from_object(config) app = EreporterMiddleware(app) - -run_wsgi_app(app) |
