Monkeypatch earlier
This commit is contained in:
parent
88d2216627
commit
992c1c1233
|
@ -3,6 +3,11 @@ logging.basicConfig(
|
||||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||||
level=logging.INFO)
|
level=logging.INFO)
|
||||||
|
|
||||||
|
import gevent
|
||||||
|
from gevent import monkey
|
||||||
|
monkey.patch_all()
|
||||||
|
from gevent.pywsgi import WSGIServer
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import json
|
import json
|
||||||
import threading
|
import threading
|
||||||
|
@ -19,12 +24,6 @@ from flask import abort, Flask, request, render_template, stream_with_context, R
|
||||||
from werkzeug.exceptions import NotFound
|
from werkzeug.exceptions import NotFound
|
||||||
from flask_cors import CORS
|
from flask_cors import CORS
|
||||||
|
|
||||||
import gevent
|
|
||||||
from gevent import monkey
|
|
||||||
from gevent.pywsgi import WSGIServer
|
|
||||||
|
|
||||||
monkey.patch_all()
|
|
||||||
|
|
||||||
database.init()
|
database.init()
|
||||||
search.init()
|
search.init()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user