liqian 3 years ago
parent
commit
4603feb146
2 changed files with 4 additions and 3 deletions
  1. 3 2
      app.py
  2. 1 1
      env.conf

+ 3 - 2
app.py

@@ -1,3 +1,6 @@
+from gevent import monkey
+monkey.patch_all()
+
 import json
 import time
 
@@ -14,9 +17,7 @@ from gevent.pywsgi import WSGIServer
 from multiprocessing import cpu_count, Process
 from utils import update_video_w_h_rate
 # from werkzeug.middleware.profiler import ProfilerMiddleware
-from gevent import monkey
 
-monkey.patch_all()
 
 app = Flask(__name__)
 #app.wsgi_app = ProfilerMiddleware(app.wsgi_app)

+ 1 - 1
env.conf

@@ -1 +1 @@
-ENV=master
+ENV=dev