diff --git a/ecosystem.config.js b/ecosystem.config.js index 82cb079..a894670 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -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', },