go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

关于etc/yaml的有一个体验性的问题

Open 47968546 opened this issue 3 years ago • 3 comments

关于etc/yaml的有一个问题

Name: baseadmin.rpc ListenOn: 127.0.0.1:8080

因为etcd是在本机上测试的话还好 但是如果是在集群和docker下每次都得修改 建议goctl默认生成的时候就直接0.0.0.0

47968546 avatar Sep 02 '22 09:09 47968546

关于etc/yaml的有一个问题

Name: baseadmin.rpc ListenOn: 127.0.0.1:8080

因为etcd是在本机上测试的话还好 但是如果是在集群和docker下每次都得修改 建议goctl默认生成的时候就直接0.0.0.0

这个是写死到代码里面的,到时候可以统一抽离到.tpl模版

jsonMark avatar Sep 05 '22 09:09 jsonMark

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.

Issues-translate-bot avatar Sep 05 '22 09:09 Issues-translate-bot

image

Change to 0.0.0.0 will cause this prompt window in macos. And it's not friendly for developing.

kevwan avatar Sep 12 '22 07:09 kevwan