diff --git a/.woodpecker/deploy.yaml b/.woodpecker/deploy.yaml index f451976..92b88f9 100644 --- a/.woodpecker/deploy.yaml +++ b/.woodpecker/deploy.yaml @@ -15,5 +15,3 @@ steps: depends_on: - test - -runs_on: [success] diff --git a/ecosystem.config.js b/ecosystem.config.js index a894670..2f7d9f6 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -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', }, }, }