mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-04 04:38:14 +08:00
16 lines
376 B
C++
16 lines
376 B
C++
#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);
|
|
app().enableRunAsDaemon();
|
|
// app().enableRelaunchOnError();
|
|
// app().loop()->runEvery(1, []() {
|
|
// LOG_WARN << "HAHA";
|
|
// });
|
|
app().run();
|
|
} |