Skip to content

请教下怎么带环境变量启动呢? #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
beclass opened this issue Apr 1, 2019 · 1 comment
Open

请教下怎么带环境变量启动呢? #1

beclass opened this issue Apr 1, 2019 · 1 comment

Comments

@beclass
Copy link

beclass commented Apr 1, 2019

请教下怎么根据环境变量启动,读取不同的配置信息呢

@coder-eric
Copy link
Owner

目前没有相关逻辑,如果需要不同的环境变量可以写到app.ini配置文件中,启动的时候修改一下配置文件就行了https://github.com/wuhe52/golang-gin-restfulAPI-example-app/blob/master/conf/app.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants