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");
|
2023-07-22 14:04:28 +00:00
|
|
|
//drogon::app().loadConfigFile("../config.yaml");
|
2019-02-02 05:45:40 +00:00
|
|
|
//Run HTTP framework,the method will block in the internal event loop
|
2018-11-09 07:21:53 +00:00
|
|
|
drogon::app().run();
|
2018-10-15 14:46:53 +00:00
|
|
|
return 0;
|
2023-07-22 14:04:28 +00:00
|
|
|
}
|