scratchpad/main.cpp

16 lines
419 B
C++

#include <drogon/drogon.h>
#include <iostream>
using namespace drogon;
int main() {
std::cout << "🚀 Ralph is starting on port 8080..." << std::endl;
// Set HTTP listener address and port
app().addListener("0.0.0.0", 8080);
// Load config file
// app().loadConfigFile("../config.json");
// Run HTTP framework,the method will block in the internal event loop
app().run();
return 0;
}