guoziyun преди 9 месеца
родител
ревизия
edb9b0a1e7
променени са 1 файла, в които са добавени 1 реда и са изтрити 17 реда
  1. 1 17
      oms/ecosystem.config.js

+ 1 - 17
oms/ecosystem.config.js

@@ -126,7 +126,7 @@ module.exports = {
     },
     {
       name: "oms-message-worker", // 监听消息推送活动,生成消息记录
-      script: "dist/services/messageWorker.js",
+      script: "dist/services/message-worker.js",
       instances: 1,
       exec_mode: "fork",
       autorestart: true,
@@ -140,21 +140,5 @@ module.exports = {
         RABBITMQ_URL: "amqp://coloring:coloring123.@localhost:5672",
       },
     },
-    // 新增的消息发送定时任务
-    {
-      name: "message-sender-cron",
-      script: "dist/services/message-sender.js", // 使用 TypeScript 文件
-      instances: 1,
-      exec_mode: "fork",
-      autorestart: true,
-      restart_delay: 5000,
-      watch: false,
-      env: {
-        NODE_ENV: "development",
-      },
-      env_production: {
-        NODE_ENV: "production",
-      },
-    },
   ],
 };