Browse Source

chore: use tsx loader with pm2

helium3@sina.com 14 hours ago
parent
commit
9dceb905f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ecosystem.config.js

+ 1 - 1
ecosystem.config.js

@@ -3,7 +3,7 @@ module.exports = {
     {
     {
       name: 'pacifica-strategy',
       name: 'pacifica-strategy',
       script: 'node',
       script: 'node',
-      args: ['-r', 'tsx', './scripts/run-modular-strategy.ts'],
+      args: ['--loader', 'tsx', './scripts/run-modular-strategy.ts'],
       cwd: '/root/pacifica',
       cwd: '/root/pacifica',
       instances: 1,
       instances: 1,
       autorestart: true,
       autorestart: true,