stub redis support
This commit is contained in:
parent
e44becce07
commit
d98899c7ad
@ -2,10 +2,17 @@ import os
|
||||
import sys
|
||||
|
||||
import flask
|
||||
import redis
|
||||
|
||||
app = flask.Flask("seagull-game", root_path="/app")
|
||||
orig_url_for = app.url_for
|
||||
|
||||
#REDIS_HOST="stub-implementation.example.net"
|
||||
#REDIS_PORT=6379
|
||||
#REDIS_USER="seagull"
|
||||
#REDIS_PASS="i am not a real password"
|
||||
#state_cache = redis.Redis(host=REDIS_HOST, port=REDIS_PORT, username=REDIS_USER, password=REDIS_PASS)
|
||||
|
||||
def url_for_override(endpoint, *posargs, _anchor=None, _method=None, _scheme=None, _external=None, self=app, **values):
|
||||
if endpoint == "static":
|
||||
# bandaid for #1
|
||||
|
@ -1,2 +1,4 @@
|
||||
Flask==2.2.2
|
||||
gevent==22.10.2
|
||||
hiredis>=1.0.0
|
||||
redis==4.5.1
|
Loading…
x
Reference in New Issue
Block a user