autobaan/ecosystem.config.js
collin 0d7682e0f9
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
Updating ecosystem to build before deploying
2026-06-16 10:34:35 +02:00

20 lines
487 B
JavaScript

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