autobaan/ecosystem.config.js
collin 1e79ca1103
All checks were successful
ci/woodpecker/push/test-and-deploy Pipeline was successful
Updating ecosystem config
2026-03-23 10:58:51 +01:00

20 lines
443 B
JavaScript

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