Updating ecosystem to build before deploying
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
collin 2026-06-16 10:34:35 +02:00
parent 04c5099d13
commit 0d7682e0f9
No known key found for this signature in database

View file

@ -2,8 +2,7 @@ module.exports = {
apps: [ apps: [
{ {
name: 'autobaan', name: 'autobaan',
script: 'npm', script: './dist/src/main.js',
args: 'run start',
}, },
], ],
deploy: { deploy: {
@ -13,6 +12,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',
'pre-deploy-local': 'npm run build',
'post-deploy': 'post-deploy':
'npm install --omit dev && GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env', 'npm install --omit dev && GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
}, },