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

Add app entry point

parent e83efcaf
No related branches found
No related tags found
No related merge requests found
// Read from the .env file
// ATTENTION : This line MUST be the first of this file
require('dotenv').config();
import WorkerRole from './process/WorkerRole';
import ClusterManager from './process/ClusterManager';
import API from './express/API';
(new ClusterManager([ {
role : WorkerRole.API,
quantity : ClusterManager.CORES,
restartOnFail: true,
loadTask : () => {
return new API();
}
} ])).run();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment