server.js 215 B

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