We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b375c19 commit 78077dcCopy full SHA for 78077dc
1 file changed
wsgi.py
@@ -3,6 +3,8 @@
3
import os
4
import logging
5
6
+import redis
7
+
8
from portingdb import htmlreport
9
10
level = logging.INFO
@@ -34,4 +36,13 @@
34
36
35
37
38
if __name__ == '__main__':
39
+ if redis_configured:
40
+ # Clear the Redis cache
41
+ r = redis.StrictRedis(
42
+ host=os.environ['REDIS_SERVICE_HOST'],
43
+ port=os.environ['REDIS_SERVICE_PORT'],
44
+ password=os.environ['REDIS_PASSWORD'],
45
+ db=0,
46
+ )
47
+ r.flushdb()
48
application.run(host='0.0.0.0', port=8080)
0 commit comments