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: [
{
name: 'autobaan',
script: 'npm',
args: 'run start',
script: './dist/src/main.js',
},
],
deploy: {
@ -13,6 +12,7 @@ module.exports = {
ref: 'origin/main',
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
path: '/root/autobaan',
'pre-deploy-local': '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',
},