diff --git a/app/pylocal/core.py b/app/pylocal/core.py index dc67b4a..7a16c14 100644 --- a/app/pylocal/core.py +++ b/app/pylocal/core.py @@ -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 diff --git a/app/requirements.txt b/app/requirements.txt index 8bdc19b..807d8c7 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -1,2 +1,4 @@ Flask==2.2.2 -gevent==22.10.2 \ No newline at end of file +gevent==22.10.2 +hiredis>=1.0.0 +redis==4.5.1 \ No newline at end of file