mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-29 18:27:43 +08:00
10 lines
317 B
Plaintext
10 lines
317 B
Plaintext
#include <drogon/drogon.h>
|
|
int main() {
|
|
//Set HTTP listener address and port
|
|
drogon::app().addListener("0.0.0.0",80);
|
|
//Load config file
|
|
//drogon::app().loadConfigFile("../config.json");
|
|
//Run HTTP framework,the method will block in the internal event loop
|
|
drogon::app().run();
|
|
return 0;
|
|
} |