mirror of
https://github.com/Relintai/broken_seals_site.git
synced 2024-11-19 19:27:17 +01:00
Use port 8080 for now, and load the config file.
This commit is contained in:
parent
9d2982e8db
commit
93380ca0a2
5
main.cc
5
main.cc
@ -1,10 +1,11 @@
|
|||||||
#include <drogon/drogon.h>
|
#include <drogon/drogon.h>
|
||||||
int main() {
|
int main() {
|
||||||
//Set HTTP listener address and port
|
//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
|
//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
|
//Run HTTP framework,the method will block in the internal event loop
|
||||||
drogon::app().run();
|
drogon::app().run();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user