diff --git a/lib/webservice/index.js b/lib/webservice/index.js index 7ca9f32..cdafe83 100644 --- a/lib/webservice/index.js +++ b/lib/webservice/index.js @@ -1,3 +1,4 @@ +const CLUSTER_MODE = false; const cluster = require('cluster'); const numCPUs = require('os').cpus().length; const express = require('express'); @@ -12,7 +13,7 @@ const routerPriceplan = require('./router/priceplan'); app.use('/apikey/:apikey/priceplan', routerPriceplan); -if (cluster.isMaster) { +if (CLUSTER_MODE && cluster.isMaster) { logger.info(`Master ${process.pid} is running`); // Fork workers.