Doesn't work as expected when called by flyctl
Boscop opened this issue · comments
Boscop commented
Thanks for this great package, it seems promising :)
But it's not working as expected:
I installed it globally with yarn. Then copied rdcli.cmd to redis-cli.cmd because flyctl
expects it under that name in PATH.
https://fly.io/docs/reference/redis/
Then I ran this but it failed to find node:
> flyctl.exe redis connect
? Select a database to connect to foo_redis (lax) personal
Proxying local port 16379 to remote [...]:6379
'node' is not recognized as an internal or external command,
operable program or batch file.
> node
Welcome to Node.js v18.12.0.
Type ".help" for more information.
Do you know why it's failing or how I can make it work? :)
Btw, this is my current workaround, but requires keeping two terminals open:
flyctl proxy 16379:6379
And then in another terminal:
redis-cli -p 16379 -a