Use port 8080 for now, and load the config file.

This commit is contained in:
Relintai 2020-08-15 14:50:31 +02:00
parent 9d2982e8db
commit 93380ca0a2

View File

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