autobaan/ecosystem.config.js

22 lines
488 B
JavaScript
Raw Normal View History

module.exports = {
apps: [
{
name: 'autobaan',
2026-06-16 11:05:08 +02:00
script: 'npm',
arguments: ['start', 'prod'],
},
],
deploy: {
production: {
user: 'root',
2026-03-23 10:58:51 +01:00
host: ['autobaan.home'],
ref: 'origin/main',
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
path: '/root/autobaan',
2026-06-17 13:51:09 +02:00
'pre-deploy': 'npm install && npm run build',
'post-deploy':
2026-06-16 11:05:08 +02:00
'GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
},
},
}