OSDN Git Service

wsgi Procfile
authoryamat0jp <yamat0jp@yahoo.co.jp>
Wed, 16 Nov 2016 13:35:36 +0000 (22:35 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Wed, 16 Nov 2016 13:35:36 +0000 (22:35 +0900)
Procfile
__pycache__/index.cpython-35.pyc
index.py
static/db/db.json

index 808887d..c033cea 100644 (file)
--- a/Procfile
+++ b/Procfile
@@ -1 +1 @@
-web: python$PYTHON_VERSION index.py
+web: gunicorn -k tornado index:app
index a5a2304..96c64e9 100644 (file)
Binary files a/__pycache__/index.cpython-35.pyc and b/__pycache__/index.cpython-35.pyc differ
index 0f93ff9..aaeffbc 100755 (executable)
--- a/index.py
+++ b/index.py
@@ -203,7 +203,7 @@ class Application(tornado.web.Application):
                         'ui_modules':{'Footer':FooterModule},
                         'cookie_secret':'bZJc2sWbQLKos6GkHn/VB9oXwQt8SOROkRvJ5/xJ89E=',
                         'xsrf_cookies':True,
-                        'debug':True,
+                        #'debug':True,
                         'login_url':'/login'
                         }
         tornado.web.Application.__init__(self,handlers,**settings)
@@ -224,11 +224,5 @@ class Application(tornado.web.Application):
         else:
             return False
         
-if __name__ == '__main__':
-    tornado.options.parse_command_line()
-    app = Application()
-    app.listen(options.port)
-    tornado.ioloop.IOLoop.instance().start()
-#    wsgi_app = tornado.wsgi.WSGIAdapter(Applications())
- #   server = wsgiref.simple_server.make_server('',8888,wsgi_app)
- #   server.serve_forever()
+app = Application()
+    
index cee5356..4208e98 100644 (file)
@@ -1 +1 @@
-{"bbs2": {}, "bbs3": {}, "bbs": {}, "bbs1": {}, "_default": {"5": {"title2": "pybbs", "mentenance": false, "count": 30, "title": "pybbs", "password": "admin", "kinds": "conf"}}}
\ No newline at end of file
+{"_default": {"5": {"title": "pybbs", "kinds": "conf", "password": "admin", "count": 30, "mentenance": false, "title2": "pybbs"}}, "bbs3": {}, "bbs1": {"1": {"title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "password": "", "date": 1, "number": 1, "name": "taro", "comment": "<p>test"}}, "bbs2": {}, "bbs": {}}
\ No newline at end of file