module.exports = {
  apps: [
    {
      name: "playableads-platform",
      script: "platform/server/dist/index.js",
      cwd: __dirname,
      env: {
        NODE_ENV: "production",
        PORT: 3001,
        PREVIEW_PUBLIC_URL: "https://color2.jccytech.cn:5198/",
      },
      // 构建服务可能需要较多内存
      max_memory_restart: "512M",
      // 日志
      out_file: "./logs/out.log",
      error_file: "./logs/err.log",
      merge_logs: true,
      log_date_format: "YYYY-MM-DD HH:mm:ss",
    },
  ],
};
