Trying out different pm2 config
Some checks are pending
ci/woodpecker/push/deploy Pipeline is pending
ci/woodpecker/push/test Pipeline is running

This commit is contained in:
collin 2026-06-16 11:05:08 +02:00
parent 0d7682e0f9
commit ca62c2b026
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -15,5 +15,3 @@ steps:
depends_on:
- test
runs_on: [success]

View file

@ -2,7 +2,8 @@ module.exports = {
apps: [
{
name: 'autobaan',
script: './dist/src/main.js',
script: 'npm',
arguments: ['start', 'prod'],
},
],
deploy: {
@ -12,9 +13,10 @@ module.exports = {
ref: 'origin/main',
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
path: '/root/autobaan',
'pre-deploy-local': 'npm run build',
'post-setup': 'npm install',
'pre-deploy': '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',
'GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
},
},
}