Skip to content

Commit

Permalink
[core] Start admin service before downloading remote codebases
Browse files Browse the repository at this point in the history
  • Loading branch information
pajama-coder committed Sep 25, 2024
1 parent 18ca184 commit ad48f12
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,13 @@ int pipy_main(int argc, char *argv[]) {
codebase = Codebase::from_root(codebase);
codebase->set_current();

s_admin_ip = admin_ip;
s_admin_port = admin_port;

if (!opts.admin_port.empty() && !opts.admin_port_off) {
toggle_admin_port();
}

bool started = false, start_error = false;

load = [&]() {
Expand Down Expand Up @@ -610,13 +617,6 @@ int pipy_main(int argc, char *argv[]) {
return;
}

s_admin_ip = admin_ip;
s_admin_port = admin_port;

if (!opts.admin_port.empty() && !opts.admin_port_off) {
toggle_admin_port();
}

if (!opts.no_reload) {
s_code_updater.start();
}
Expand Down

0 comments on commit ad48f12

Please sign in to comment.