mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Add redis to requirements and test for uwsgi to monkeypatch
This commit is contained in:
parent
0631ccc96d
commit
718fafe0a0
@ -8,4 +8,5 @@ paypalrestsdk
|
|||||||
https://github.com/TitanEmbeds/discord.py/archive/async.zip#egg=discord.py[voice]
|
https://github.com/TitanEmbeds/discord.py/archive/async.zip#egg=discord.py[voice]
|
||||||
asyncio_extras
|
asyncio_extras
|
||||||
kombu
|
kombu
|
||||||
redis
|
redis
|
||||||
|
aioredis
|
@ -7,12 +7,17 @@ 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
|
||||||
|
|
||||||
if config.get("websockets-mode", None) == "eventlet":
|
try:
|
||||||
import eventlet
|
import uwsgi
|
||||||
eventlet.monkey_patch()
|
|
||||||
elif config.get("websockets-mode", None) == "gevent":
|
|
||||||
from gevent import monkey
|
from gevent import monkey
|
||||||
monkey.patch_all()
|
monkey.patch_all()
|
||||||
|
except:
|
||||||
|
if config.get("websockets-mode", None) == "eventlet":
|
||||||
|
import eventlet
|
||||||
|
eventlet.monkey_patch()
|
||||||
|
elif config.get("websockets-mode", None) == "gevent":
|
||||||
|
from gevent import monkey
|
||||||
|
monkey.patch_all()
|
||||||
|
|
||||||
os.chdir(config['app-location'])
|
os.chdir(config['app-location'])
|
||||||
app = Flask(__name__, static_folder="static")
|
app = Flask(__name__, static_folder="static")
|
||||||
|
Loading…
Reference in New Issue
Block a user