New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set "--registry_address" #10
Comments
Micro is a command line executable that has sub commands whereas the server binary does not. The expectation is that global flags such as registry and registry_address be set after execution of the binary and any further commands. So your second method of use |
so ignore it=( |
Indeed. Sorry if there's any confusion. I can update the docs to make it more clear. |
But how i can force new registry_address ? root@f6f37458c0a8:/go# micro --registry "consul" --registry_address "consul:8500" list services Why micro still trying 127.0.0.1? |
Ah yea I see what you're saying. It's a bug. I'm looking at it now. Give me a few minutes. |
Ok this should be fixed. Please try again and let me know. |
yeah, now works. thanks! |
No worries. Thanks for trying out micro! |
root@f6f37458c0a8:/go# micro list services --registry "consul" --registry_address "consul:8500"
Incorrect Usage.
NAME:
micro list services - List services in registry
USAGE:
micro list services [arguments...]
OR ignore it:
root@f6f37458c0a8:/go# micro --registry "consul" --registry_address "consul:8500" list services
Get http://127.0.0.1:8500/v1/catalog/services: dial tcp 127.0.0.1:8500: getsockopt: connection refused
even from env
root@f6f37458c0a8:/go# env | grep MICRO
MICRO_REGISTRY_ADDRESS=consul:8500
MICRO_REGISTRY=consul
root@f6f37458c0a8:/go# micro list services
Get http://127.0.0.1:8500/v1/catalog/services: dial tcp 127.0.0.1:8500: getsockopt: connection refused
but
server --registry "consul" --registry_address "consul:8500"
works
The text was updated successfully, but these errors were encountered: