server.js 216 B

123456789
  1. // eslint-disable-next-line strict
  2. const egg = require('egg');
  3. const line = 1;// Number(process.argv[2] || require('os').cpus().length);
  4. const workers = line;
  5. egg.startCluster({
  6. workers,
  7. baseDir: __dirname,
  8. });