]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Upgrade appengine website to python 2.7.
authorBen Darnell <ben@bendarnell.com>
Sun, 18 Nov 2012 21:19:33 +0000 (16:19 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 18 Nov 2012 21:19:33 +0000 (16:19 -0500)
website/app.yaml
website/website.py

index 131a614342373d3f2f5e3d00ef7bc92af7cb9d23..f1fcfdfda775e62929afc8e8b7a2d4e5fc2d3ed1 100644 (file)
@@ -1,14 +1,15 @@
 application: python-tornado-hrd
-version: 2
-runtime: python
+version: 3
+runtime: python27
 api_version: 1
+threadsafe: yes
 
 handlers:
 - url: /static/tornado-0.1.tar.gz
-  script: website.py
+  script: website.application
 
 - url: /static/tornado-0.2.tar.gz
-  script: website.py
+  script: website.application
 
 - url: /static/
   static_dir: static
@@ -22,10 +23,10 @@ handlers:
   upload: static/favicon.ico
 
 - url: /documentation/?
-  script: website.py
+  script: website.application
 
 - url: /documentation
   static_dir: sphinx/build/html
 
 - url: /.*
-  script: website.py
+  script: website.application
index 489d6aa858c3f91eb638291c1d2f7ae32feadf23..2d1d837432314981e267cb377063e58d9806cbba 100644 (file)
@@ -18,7 +18,6 @@ import os
 import os.path
 import tornado.web
 import tornado.wsgi
-import wsgiref.handlers
 
 
 class ContentHandler(tornado.web.RequestHandler):
@@ -46,11 +45,3 @@ application = tornado.wsgi.WSGIApplication([
      dict(url="/documentation/index.html")),
 
 ], **settings)
-
-
-def main():
-    wsgiref.handlers.CGIHandler().run(application)
-
-
-if __name__ == "__main__":
-    main()