The Config Parser looks a lot better, cleaner, made a lot of decisions and added i think everything to the apropriate header files, now working on testing but since new install of Ubuntu testing make on something i expect is working, the main branch, so brb
This commit is contained in:
@@ -17,11 +17,19 @@ int main(int ac, char **av)
|
||||
// is there a better way?
|
||||
|
||||
ConfigParser configParser(config.c_str());
|
||||
Webserv serv(configParser.parse());
|
||||
|
||||
configParser._print_content();
|
||||
|
||||
std::vector<ServerConfig> servers = configParser.parse();
|
||||
|
||||
for (int i = 0; i < server.size(); i++)
|
||||
servers[i].print_all();
|
||||
|
||||
// Webserv serv(configParser.parse());
|
||||
// is this better or worse than using
|
||||
|
||||
serv.init_virtual_servers();
|
||||
serv.start();
|
||||
// serv.init_virtual_servers();
|
||||
// serv.start();
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user