mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api: wait for cluster to finish preparing
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user