liweiv opened this issue 6 years ago · 0 comments
When debug 、test or go run man.go ,'go run' directory is different from config directory. we can use a default env variable 'CONF_HOME' to get app.yml dir.
export CONF_HOME=/<your config dir> go run main.go