go-webapp-sample icon indicating copy to clipboard operation
go-webapp-sample copied to clipboard

[NEW] About load configuration files

Open zuozhehao opened this issue 3 years ago • 1 comments

1、Use environment.
When there are multiple systems running, it is not very convenient

2、Start with parameters In the development process, if unit testing is needed, especially using Golan, it seems inconvenient to do testing

Whether a third option can be added, using a relative path to load the configuration file .

zuozhehao avatar Apr 27 '22 14:04 zuozhehao

@zuozhehao Thank you for your opinion.

1、Use environment. When there are multiple systems running, it is not very convenient

Please give an environment to the parameter for starting this application if the environment variables are same on the multiple applications.

2、Start with parameters In the development process, if unit testing is needed, especially using Golan, it seems inconvenient to do testing

Currently, we don't need the parameter for executing the unit tests in this application. Please refer the followings: https://github.com/ybkuroki/go-webapp-sample/blob/master/.github/workflows/check.yml#L39

If you do not receive a reply within a month, please let me close this issue.

ybkuroki avatar Jul 24 '22 05:07 ybkuroki

I will close this issue. Please create a new issue if you have any questions and concerns. Thanks.

ybkuroki avatar Aug 31 '22 08:08 ybkuroki