2018-12-15 12:05:19 +00:00
|
|
|
#include <drogon/drogon.h>
|
|
|
|
|
|
|
|
using namespace drogon;
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
app().setLogPath("./");
|
|
|
|
app().setLogLevel(trantor::Logger::WARN);
|
|
|
|
app().addListener("0.0.0.0", 7770);
|
|
|
|
app().setThreadNum(16);
|
2019-01-25 11:48:24 +00:00
|
|
|
app().enableRunAsDaemon();
|
|
|
|
// app().enableRelaunchOnError();
|
|
|
|
// app().loop()->runEvery(1, []() {
|
|
|
|
// LOG_WARN << "HAHA";
|
|
|
|
// });
|
2018-12-15 12:05:19 +00:00
|
|
|
app().run();
|
|
|
|
}
|