modify default config file path

This commit is contained in:
zhangyuheng 2023-12-25 00:17:37 +08:00
parent 2daeeefb9f
commit c277585661

View File

@ -24,7 +24,7 @@ public:
public:
OATPP_CREATE_COMPONENT(oatpp::Object<dto::Configuration>, config)
([this] {
const char *configPath = m_cmdArgs.getNamedArgumentValue("--profile", "./config.json");
const char *configPath = m_cmdArgs.getNamedArgumentValue("--profile", "../resource/config.json");
oatpp::String configText = oatpp::String::loadFromFile(configPath);
if (configText == nullptr) {