mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
fix gevent's monkey patch position
This commit is contained in:
parent
2f4c2298ba
commit
cbdc1e1e76
@ -17,6 +17,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
|||||||
(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
|
(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from gevent import monkey; monkey.patch_all()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from sys import path
|
from sys import path
|
||||||
from os.path import realpath, dirname
|
from os.path import realpath, dirname
|
||||||
@ -473,9 +476,6 @@ def favicon():
|
|||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
from gevent import monkey
|
|
||||||
monkey.patch_all()
|
|
||||||
|
|
||||||
app.run(
|
app.run(
|
||||||
debug=settings['server']['debug'],
|
debug=settings['server']['debug'],
|
||||||
use_debugger=settings['server']['debug'],
|
use_debugger=settings['server']['debug'],
|
||||||
|
Loading…
Reference in New Issue
Block a user