Skip to content
Snippets Groups Projects
Commit 9ddd13a5 authored by michael.minelli's avatar michael.minelli
Browse files

Multiprocess => Do not run multiprocess in dev env.

parent cb29e39f
Branches
Tags
No related merge requests found
Pipeline #30101 passed
require('./InitialImports'); // ATTENTION : These lines MUST be the first of this file
import SharedConfig from './shared/config/SharedConfig';
import WorkerRole from './process/WorkerRole';
import ClusterManager from './process/ClusterManager';
import API from './express/API';
......@@ -9,9 +10,13 @@ import HttpManager from './managers/HttpManager';
HttpManager.registerAxiosInterceptor();
(new ClusterManager([ {
role : WorkerRole.API,
quantity : ClusterManager.CORES,
restartOnFail: true,
loadTask : () => new API()
} ])).run();
if ( SharedConfig.production ) {
(new ClusterManager([ {
role : WorkerRole.API,
quantity : ClusterManager.CORES,
restartOnFail: true,
loadTask : () => new API()
} ])).run();
} else {
(new API()).run();
}
Subproject commit 75fedb26c47bb6f707725307a79a45a13e62496d
Subproject commit 985c0b6a5dcb640404e5cf5fc91978215f961e3b
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment