Skip to content

Commit 5bc0b74

Browse files
committed
redis_plugin: allow to define host and port for the redis server
1 parent 1179683 commit 5bc0b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/board-linuxfr/redis_plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(address, port, config, status, logger)
1212
@logger = logger
1313
@chans = status[:channels] = Hash.new { |h,k| h[k] = EM::Channel.new }
1414
@cache = status[:cache] = Cache.new
15-
@redis = Redis.new
15+
@redis = Redis.new(host: ENV['REDIS_HOST'] || "localhost", port: ENV['REDIS_PORT'] || 6379)
1616
end
1717

1818
def run

0 commit comments

Comments
 (0)