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

Generate config file with the name config.yaml and not <servicename>.yaml

Open a0v0 opened this issue 3 years ago • 2 comments

same as title

a0v0 avatar Sep 14 '22 14:09 a0v0

The generated configuration file is only used for local debugging. Why do you need to change this?

re-dylan avatar Sep 15 '22 11:09 re-dylan

I commit the config.yml in git. Recently I have changed the service name several times. With each change I have to rename the file and update main.go which is a mess.

Having a default name config or something other than the service name will prevent this hassle in the future.

a0v0 avatar Sep 15 '22 12:09 a0v0

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 16 '23 01:09 github-actions[bot]