mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
api: wait for cluster to finish preparing
This commit is contained in:
parent
2317da5ba5
commit
3f505f6520
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ if (env.apiURL) {
|
||||||
const { runAPI } = await import("./core/api.js");
|
const { runAPI } = await import("./core/api.js");
|
||||||
|
|
||||||
if (isCluster) {
|
if (isCluster) {
|
||||||
initCluster();
|
await initCluster();
|
||||||
}
|
}
|
||||||
|
|
||||||
runAPI(express, app, __dirname, cluster.isPrimary);
|
runAPI(express, app, __dirname, cluster.isPrimary);
|
||||||
|
|
Loading…
Reference in a new issue