fix: cgi exe

This commit is contained in:
Talyx
2022-02-15 20:49:09 +03:00
parent c21aae0b1d
commit f7f1793722
15 changed files with 79 additions and 41 deletions

View File

@@ -9,12 +9,20 @@ int main(int argc, char **argv)
(void)argv;
Server server;
char *path = (char *)"config/real.toml";
try
{
if (argv[1] != NULL)
server.readConfig(argv[1]);
else
server.readConfig(path);
server.start();
}
catch(const std::exception& e)
{
std::cerr << RED << e.what() << '\n' << ENDL;
}
server.end();
server.readConfig(argv[1]);
server.setupConfig();
// server.start();
server.end();
return (0);
}