nic-chen commented on a change in pull request #598:
URL: https://github.com/apache/apisix-dashboard/pull/598#discussion_r517156945
##########
File path: api/conf/conf.go
##########
@@ -42,16 +41,50 @@ const (
)
var (
- ENV string
- basePath string
- Schema gjson.Result
- DagLibPath = "/go/manager-api/dag-to-lua/"
+ ENV string
+ basePath string
+ Schema gjson.Result
+ DagLibPath = "/go/manager-api/dag-to-lua/"
Review comment:
it's a history issue. working on it.
##########
File path: api/conf/conf.go
##########
@@ -61,23 +94,23 @@ func setEnvironment() {
ENV = env
}
- if env := os.Getenv("APIX_DAG_LIB_PATH"); env != "" {
- DagLibPath = env
- }
-
_, basePath, _, _ = runtime.Caller(1)
}
func configurationPath() string {
- if ENV == EnvLOCAL {
+ if confPath := os.Getenv("APISIX_CONF_PATH"); confPath != "" {
Review comment:
@moonming working on it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]