pm2.config.js 387 B

1234567891011121314151617
  1. const pkg = require('./package.json')
  2. module.exports = {
  3. apps: [{
  4. name: pkg.name,
  5. script: './server/server.js',
  6. // Options reference: https://pm2.io/doc/en/runtime/reference/ecosystem-file/
  7. instances: 1,
  8. max_memory_restart: '150M',
  9. env: {
  10. NODE_ENV: 'production'
  11. },
  12. watch: ['dist'],
  13. ignore_watch: ['node_modules'],
  14. watch_delay: 5e3
  15. }]
  16. }