mirror of
https://github.com/Relintai/crystal_cms_rcpp_fw.git
synced 2025-04-22 20:41:18 +02:00
Only load sessions if not trying to migrate.
This commit is contained in:
parent
29c22ba919
commit
0e7225ae1e
4
main.cpp
4
main.cpp
@ -73,8 +73,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
DWebApplication *app = new MAIN_CLASS();
|
||||
|
||||
session_manager->load_sessions();
|
||||
|
||||
app->load_settings();
|
||||
app->setup_routes();
|
||||
app->setup_middleware();
|
||||
@ -83,6 +81,8 @@ int main(int argc, char **argv) {
|
||||
LOG_INFO << "Server running on 127.0.0.1:8080";
|
||||
|
||||
if (!migrate) {
|
||||
session_manager->load_sessions();
|
||||
|
||||
printf("Initialized!\n");
|
||||
app->run();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user