go-zero
go-zero copied to clipboard
关于etc/yaml的有一个体验性的问题
关于etc/yaml的有一个问题
Name: baseadmin.rpc ListenOn: 127.0.0.1:8080
因为etcd是在本机上测试的话还好 但是如果是在集群和docker下每次都得修改 建议goctl默认生成的时候就直接0.0.0.0
关于etc/yaml的有一个问题
Name: baseadmin.rpc ListenOn: 127.0.0.1:8080
因为etcd是在本机上测试的话还好 但是如果是在集群和docker下每次都得修改 建议goctl默认生成的时候就直接0.0.0.0
这个是写死到代码里面的,到时候可以统一抽离到.tpl模版
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
have a question about etc/yaml
Name: baseadmin.rpc ListenOn: 127.0.0.1:8080
Because etcd is tested on the local machine, it is fine, but if it has to be modified every time under the cluster and docker, it is recommended to directly 0.0.0.0 when goctl is generated by default
This is hard-coded into the code, and it can be extracted to the .tpl template uniformly at that time.
Change to 0.0.0.0 will cause this prompt window in macos. And it's not friendly for developing.