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
This commit is contained in:
2026-04-04 13:27:31 +02:00
parent 26258c5f8b
commit 2603288881

View File

@@ -14,6 +14,10 @@ PHP="/usr/local/php84/bin/php"
COMPOSER="/usr/local/bin/composer" COMPOSER="/usr/local/bin/composer"
TAG="${1:-}" TAG="${1:-}"
# Load fnm (Node version manager)
export PATH="$HOME/.local/share/fnm:$PATH"
eval "$(fnm env)"
echo "══════════════════════════════════════" echo "══════════════════════════════════════"
echo " PreRegister — Deploy" echo " PreRegister — Deploy"
echo "══════════════════════════════════════" echo "══════════════════════════════════════"