Move everything into the root directory

The separate vote-apps directory was because networking didn't
used to support aliases to remove the project name.

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman
2016-01-25 18:23:19 +00:00
parent 94c0d7b507
commit 878cdeb583
18 changed files with 1 additions and 2 deletions

View File

@ -0,0 +1,17 @@
import time
from redis import Redis, ConnectionError
def connect_to_redis(host):
time.sleep(2)
print "Connecting to redis"
while True:
try:
redis = Redis(host=host, db=0)
redis.ping()
print "Connected to redis"
return redis
except ConnectionError:
print "Failed to connect to redis - retrying"
time.sleep(1)