From 2603288881fb429aefa458afa9deaa63a121bbca Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Sat, 4 Apr 2026 13:27:31 +0200 Subject: [PATCH] chore: load fnm in deploy script for Node/npm Export PATH and eval fnm env so npm run build uses the intended Node version on the VPS. Made-with: Cursor --- deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy.sh b/deploy.sh index 4022580..12771c2 100644 --- a/deploy.sh +++ b/deploy.sh @@ -14,6 +14,10 @@ PHP="/usr/local/php84/bin/php" COMPOSER="/usr/local/bin/composer" TAG="${1:-}" +# Load fnm (Node version manager) +export PATH="$HOME/.local/share/fnm:$PATH" +eval "$(fnm env)" + echo "══════════════════════════════════════" echo " PreRegister — Deploy" echo "══════════════════════════════════════"