Resolve pnpm path in DBIS deploy
Some checks failed
Deploy to Phoenix / validate (push) Failing after 34s
Deploy to Phoenix / deploy (push) Has been skipped
Deploy to Phoenix / deploy-atomic-swap-dapp (push) Has been skipped
Deploy to Phoenix / cloudflare (push) Has been skipped

This commit is contained in:
defiQUG
2026-04-27 11:39:08 -07:00
parent f8938b2e42
commit 34d378f6ef

View File

@@ -125,13 +125,25 @@ if ! command -v node >/dev/null 2>&1; then
apt-get install -y nodejs
fi
export PATH="/usr/local/bin:/usr/bin:/bin:\$PATH"
if ! command -v pnpm >/dev/null 2>&1; then
npm install -g pnpm@8.15.0
hash -r
fi
PNPM_BIN="\$(command -v pnpm || true)"
if [ -z "\$PNPM_BIN" ]; then
for candidate in /usr/local/bin/pnpm /usr/bin/pnpm; do
if [ -x "\$candidate" ]; then
PNPM_BIN="\$candidate"
break
fi
done
fi
[ -n "\$PNPM_BIN" ] || { echo "pnpm is required but was not found after install" >&2; exit 1; }
cd "\$CT_APP_DIR"
pnpm install --frozen-lockfile
pnpm --filter portal-dbis build
"\$PNPM_BIN" install --frozen-lockfile
"\$PNPM_BIN" --filter portal-dbis build
cat > "/etc/systemd/system/\$SERVICE_NAME.service" <<UNIT
[Unit]