juggernaut icon indicating copy to clipboard operation
juggernaut copied to clipboard

Added support for Redis host and port arguments

Open benlong opened this issue 13 years ago • 8 comments

Updated server.js to accept --redisport and --redishost arguments.

Values are passed to listen(), and normalized to defaults. From here forwarded along through the application.

A minor 'refactorish' change: Events.client is no longer created inline. Instead publish inits channel which inits event with proper redis information.

We're using this in production today. I'm interested in feedback/drawbacks of the implementation. I have another patch that allows the use of Redis.namespace for namespaced redis instances.

benlong avatar Jan 27 '12 22:01 benlong

+1 I need this to run juggernaut in rails test environment, which connects to redis in a different port :thumbsup:

felipecsl avatar Apr 19 '12 00:04 felipecsl

+1 this patch works well for connecting to a different host redis is running on

snovotny avatar Apr 27 '12 22:04 snovotny

+1

redterror avatar Jul 13 '12 20:07 redterror

+1

kebot avatar Aug 14 '12 06:08 kebot

+1

barttenbrinke avatar Mar 12 '13 13:03 barttenbrinke

+1

Narnach avatar Mar 20 '13 10:03 Narnach

+1

codenamev avatar May 16 '13 13:05 codenamev

:+1: I was seeing exactly this here...

alexandre-mbm avatar Mar 11 '15 08:03 alexandre-mbm