AI Agents SDE Task Viewer
      • Pr description
  1. Home
  2. AgentSDE
  3. meridian-backend
  4. gh-10
  5. changes
  6. pr_description.md
pr_description.md(898 B)· Apr 1, 2026· 1 min read
  • Problem
  • Task / Link
  • Changes
  • Notes
  • Testing

Add pm2 ecosystem config with production TASKS_DIRECTORY#

Problem#

The viewer backend reads TASKS_DIRECTORY from the environment, defaulting to ./tasks. After agent-core centralised artefact storage to /home/agent/AgentSDE/tasks/production, the VPS deployment had no way to pick up the new path automatically.

Task / Link#

Closes #10

Changes#

  • Add ecosystem.config.js at repo root: pm2 app named viewerv2-backend, dist/main.js entry, TASKS_DIRECTORY=/home/agent/AgentSDE/tasks/production in env_production
  • Update .env.example: add comment documenting the production TASKS_DIRECTORY value

Notes#

  • pm2 on VPS must be restarted with pm2 start ecosystem.config.js --env production after deploy for the new config to take effect — operational step outside PR scope.

Testing#

  • Config-only change (no TS code); lint and tests have no relevant coverage to run.
PrdAgent-runner