Closed ipetrovic11 closed 2 years ago
are you sure the path of config file is correct? Could you try to change e.g. namespace in config file and check with info?
Yes
And here is the config:
And there is no defined TRANSPORTER
env var? Because env var is stronger than config file.
100%
Then it's strange, because there is no default transporter, so if it's not defined, transporter won't be created. But in your case, somehow TCP transporter is defined.
I am not sure, but using this moleculer connect redis://localhost-staging:30014 --ns=staging
works fine.
You are right, there is a strange "if" statement in the code: https://github.com/moleculerjs/moleculer-cli/blob/f246a708b1419c19226a53ca3682bda136286123/src/connect-handler.js#L49-L56
I will fix it.
Using
moleculer connect --config ./moleculer.config.js
transport is not loaded properly.To verify this after running the command and executing
info
most of the config is loaded, while the transporter stays TCP