module.exports = { apps: [ { name: 'backend', cwd: '/home/wlt/ai-learning-platform/backend', script: 'node', args: 'dist/main.js', instances: 1, autorestart: true, watch: false, max_restarts: 10, env: { NODE_ENV: 'development' } }, { name: 'frontend', cwd: '/home/wlt/ai-learning-platform/frontend', script: 'node', args: 'server.js', instances: 1, autorestart: true, watch: false, max_restarts: 3, env: { NODE_ENV: 'production', PORT: 3000 } } ] }