server.js 193 B

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