Skip to content

Support read config from env. #7

Description

@liweiv

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions