canvas-lms
canvas-lms copied to clipboard
session store still connect to local redis-server even if a remote redis server configured
When I use a local redis-server, everything works greatly. When I configured a remote server in redis.yml, cache_store will use the remote server, but session_store still connected to local, it supposed to connect to servers listed in the redis.yml as well.
config files below
config/redis.yml
development:
# only tests that are exercising the integration with redis require redis to run.
servers:
- redis://stream
config/session_store.yml
development:
session_store: redis_session_store
config/cache_store.yml
# if this file doesn't exist, memcache will be used if there are any
# servers configured in config/memcache.yml
development:
# cache_store: mem_cache_store
# # if no servers are specified, we'll look in config/memcache.yml
# servers:
# - localhost
#
cache_store: redis_store
# # if no servers are specified, we'll look in config/redis.yml
# servers:
# - localhost
# database: 0
errors
https://gist.github.com/4166755
It looks like we're not properly merging the redis.yml config in. I pushed a commit to fix it to my fork (https://github.com/ccutrer/canvas-lms/commit/c640745b700f49045968d3e4ddf95c78d304c102); it's going through review internally, and then should get cherry-picked to Instructure's master branch as well.