ecosystem.config.js 370 B

123456789101112131415161718
  1. const { name } = require('./package.json');
  2. const path = require('path');
  3. module.exports = {
  4. apps: [
  5. {
  6. name,
  7. script: path.resolve(__dirname, './dist/index.js'),
  8. instances: require('os').cpus().length,
  9. autorestart: true,
  10. watch: true,
  11. env_production: {
  12. NODE_ENV: 'production',
  13. PORT: 8080,
  14. },
  15. },
  16. ],
  17. };