]> git.xn--bdkaa.com Git - where-are-you.py.git/commitdiff
Try fix errors
authorzharkovstas <zharkovstas@skbkontur.ru>
Sun, 19 May 2019 05:39:17 +0000 (10:39 +0500)
committerzharkovstas <zharkovstas@skbkontur.ru>
Sun, 19 May 2019 05:39:17 +0000 (10:39 +0500)
app.py

diff --git a/app.py b/app.py
index 00b55e7ef9eb3d5f5f1d9405bb90b02ef9432b61..6481ed0f5fb0c6fb0ad25edc74bde6c631d14929 100644 (file)
--- a/app.py
+++ b/app.py
@@ -384,8 +384,11 @@ def static_media(staticFile):
 def index(whatever):
     return static_file('index.html', "build")
 
+application = bottle.default_app()
+from paste import httpserver
+
 
 if os.environ.get('APP_LOCATION') == 'heroku':
-    run(host="0.0.0.0", port=int(os.environ.get("PORT", 5000)))
+    httpserver.serve(application, host='0.0.0.0', port=int(os.environ.get("PORT", 5000)))
 else:
-    run(host='localhost', port=8080, debug=True, server='paste')
+    httpserver.serve(application, host='localhost', port=8080, threadpool_workers=20, request_queue_size=20)