9 lines
116 B
JavaScript
9 lines
116 B
JavaScript
|
var cluster = require('cluster');
|
||
|
|
||
|
if (cluster.isMaster) {
|
||
|
require('./master');
|
||
|
}
|
||
|
else {
|
||
|
require('./worker');
|
||
|
}
|