From 103aae482c7ce50622109400911a7ba1b8924f0c Mon Sep 17 00:00:00 2001 From: collin Date: Wed, 17 Jun 2026 13:51:09 +0200 Subject: [PATCH] Fixing pre-deploy step of pm2 --- ecosystem.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 2f7d9f6..a3adbed 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -13,8 +13,7 @@ module.exports = { ref: 'origin/main', repo: 'https://fred.collinduncan.com/collin/autobaan.git', path: '/root/autobaan', - 'post-setup': 'npm install', - 'pre-deploy': 'npm run build', + 'pre-deploy': 'npm install && npm run build', 'post-deploy': 'GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env', },