autobaan/ecosystem.config.js
Collin Duncan a6fb5f35b6
Some checks failed
ci/woodpecker/push/test-and-deploy Pipeline was successful
Push to main / test (push) Has been cancelled
Push to main / build-image (push) Has been cancelled
Migrating to self-hosted solution for cicd and deployments
2025-04-29 11:24:20 +02:00

20 lines
445 B
JavaScript

module.exports = {
apps: [
{
name: 'autobaan',
script: 'npm',
args: 'run start',
},
],
deploy: {
production: {
user: 'root',
host: ['autobaan'],
ref: 'origin/deploy_test',
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',
},
},
}