Fixing pre-deploy step of pm2
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline failed

This commit is contained in:
collin 2026-06-17 13:51:09 +02:00
parent 908651b894
commit 103aae482c
No known key found for this signature in database

View file

@ -13,8 +13,7 @@ module.exports = {
ref: 'origin/main', ref: 'origin/main',
repo: 'https://fred.collinduncan.com/collin/autobaan.git', repo: 'https://fred.collinduncan.com/collin/autobaan.git',
path: '/root/autobaan', path: '/root/autobaan',
'post-setup': 'npm install', 'pre-deploy': 'npm install && npm run build',
'pre-deploy': 'npm run build',
'post-deploy': 'post-deploy':
'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',
}, },