broken_seals_site/main.cc

12 lines
321 B
C++
Raw Normal View History

2020-08-15 14:15:16 +02:00
#include <drogon/drogon.h>
int main() {
//Set HTTP listener address and port
drogon::app().addListener("0.0.0.0", 8080);
2020-08-15 14:15:16 +02:00
//Load config file
drogon::app().loadConfigFile("config.json");
2020-08-15 14:15:16 +02:00
//Run HTTP framework,the method will block in the internal event loop
drogon::app().run();
2020-08-15 14:15:16 +02:00
return 0;
}