Sets database host in redis test database

This commit is contained in:
Raul Ochoa 2014-07-04 17:01:58 +02:00
parent 572f8c59b7
commit 26685c58af

View File

@ -88,6 +88,7 @@ if test x"$PREPARE_REDIS" = xyes; then
# delete previous publicuser
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
HDEL rails:users:vizzuality database_host
HDEL rails:users:vizzuality database_publicuser
EOF
@ -95,6 +96,7 @@ EOF
HMSET rails:users:vizzuality \
id 1 \
database_name ${TEST_DB} \
database_host localhost \
map_key 1234
SADD rails:users:vizzuality:map_key 1235
EOF