membphis commented on a change in pull request #2101: URL: https://github.com/apache/apisix/pull/2101#discussion_r484058538
########## File path: bin/apisix ########## @@ -940,6 +940,22 @@ function _M.start(...) end end + local argparse = require "argparse" + local parser = argparse() + parser:argument("_", "Placeholder") + parser:option("-c --config", "location of customed config.yaml") + local args = parser:parse() + local customed_yaml = args["config"] + + local profile = require("apisix.core.profile") + profile.apisix_home = apisix_home .. "/" + local local_conf_path = profile:yaml_path("config") + + if customed_yaml then + local cmd = "cp " .. customed_yaml .. " " .. local_conf_path Review comment: we can pass this option by `nginx.conf`. we can follow this way: https://github.com/apache/apisix/blob/master/bin/apisix#L279 ---------------------------------------------------------------- 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: us...@infra.apache.org