How to connect to specific redis
EzraTsai opened this issue · comments
Ezra Tsai commented
If i want to connect cube.js to my own built redis, what should I do.
I use CUBEJS_REDIS_URL
which is claimed by official document. So, for example, if my own redis port is 31.71.195.218.
Should I use write CUBEJS_REDIS_URL=redis://31.71.195.218:6379/0
in my backend .env file? I use many combination like, redis://31.71.195.218:6379
, redis://31.71.195.218
, ect. However, they all shows
process in uncaughtException: { Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1117:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 6379 }
in my terminal. It seems that this environment variable CUBEJS_REDIS_URL
doesn't useful.
Any help/clarifications would be helpful; thanks.
Ezra Tsai commented
I post in the wrong place. sorry.