module.exports = {
  apps: [
    {
      name: "datafetch-backend",
      script: ".venv/bin/python",
      args: "-m uvicorn backend.app.main:app --host 0.0.0.0 --port 8000",
      cwd: "./",
      env: {
        PYTHONPATH: "./backend"
      }
    },
    {
      name: "datafetch-frontend",
      script: "npm",
      args: "run dev", // 生产环境建议改为 "start" 并先运行 npm run build
      cwd: "./frontend",
      env: {
        NODE_ENV: "development"
      }
    }
  ]
};
