module.exports = { apps: [ { name: 'autobaan', script: 'npm', args: ['run', 'start:prod'], }, ], deploy: { production: { user: 'root', host: ['autobaan.home'], ref: 'origin/main', repo: 'https://fred.collinduncan.com/collin/autobaan.git', path: '/root/autobaan', 'pre-deploy': 'npm install && npm run build', 'post-deploy': 'GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env', }, }, }