Add redis to requirements and test for uwsgi to monkeypatch

This commit is contained in:
Jeremy Zhang 2017-08-27 02:22:03 +00:00
parent 0631ccc96d
commit 718fafe0a0
2 changed files with 11 additions and 5 deletions

View File

@ -9,3 +9,4 @@ https://github.com/TitanEmbeds/discord.py/archive/async.zip#egg=discord.py[voice
asyncio_extras asyncio_extras
kombu kombu
redis redis
aioredis

View File

@ -7,6 +7,11 @@ from .blueprints import api, user, admin, embed, gateway
import os import os
from titanembeds.database import get_administrators_list from titanembeds.database import get_administrators_list
try:
import uwsgi
from gevent import monkey
monkey.patch_all()
except:
if config.get("websockets-mode", None) == "eventlet": if config.get("websockets-mode", None) == "eventlet":
import eventlet import eventlet
eventlet.monkey_patch() eventlet.monkey_patch()