2018-10-18 07:54:57 +00:00
|
|
|
#include <drogon/drogon.h>
|
2018-10-15 14:46:53 +00:00
|
|
|
int main() {
|
|
|
|
//Set HTTP listener address and port
|
2018-11-09 07:21:53 +00:00
|
|
|
drogon::app().addListener("0.0.0.0",80);
|
|
|
|
//Load config file
|
|
|
|
//drogon::app().loadConfigFile("../config.json");
|
2018-10-15 14:46:53 +00:00
|
|
|
//Run HTTP framework,the method will block in the inner event loop
|
2018-11-09 07:21:53 +00:00
|
|
|
drogon::app().run();
|
2018-10-15 14:46:53 +00:00
|
|
|
return 0;
|
|
|
|
}
|