go-apollo/apollo

Support read config from env.

liweiv opened this issue · 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