ecosystem.config.js 501 B

1234567891011121314151617181920
  1. module.exports = {
  2. apps: [
  3. {
  4. name: 'pacifica-strategy',
  5. script: 'node',
  6. args: ['--import', 'tsx', './scripts/run-modular-strategy.ts'],
  7. cwd: '/root/pacifica',
  8. instances: 1,
  9. autorestart: true,
  10. watch: false,
  11. max_memory_restart: '500M',
  12. env: {
  13. NODE_ENV: 'production'
  14. },
  15. out_file: '/root/pacifica/logs/pm2-out.log',
  16. err_file: '/root/pacifica/logs/pm2-err.log',
  17. log_date_format: 'YYYY-MM-DD HH:mm:ss'
  18. }
  19. ]
  20. };