canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

session store still connect to local redis-server even if a remote redis server configured

Open wongyouth opened this issue 14 years ago • 1 comments

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

wongyouth avatar Nov 29 '12 04:11 wongyouth

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.

ccutrer avatar Nov 29 '12 16:11 ccutrer