Skip to content

Commit

Permalink
nodejs: fix nodejs wildcard version deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Jul 24, 2024
1 parent 6ea5987 commit f5c123c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nodejs/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ fi

nvm cache clear

# removing default alias - fix X.Y.* wildcard bug on subsequents deploys
if [[ -f ~/.nvm/alias/default ]]; then
rm ~/.nvm/alias/default
fi

rm -f ~/.nvm_bin
ln -s $NVM_BIN ~/.nvm_bin

Expand Down
2 changes: 1 addition & 1 deletion nodejs/install
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -euf -o pipefail
SOURCE_DIR=/var/lib/tsuru
source ${SOURCE_DIR}/base/rc/config

curl -fsSLo- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | sudo -E -u ${USER} bash
curl -fsSLo- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | sudo -E -u ${USER} bash

cat >> ~/.profile <<-EOF
export PATH=${PATH}:${HOME}/.nvm_bin
Expand Down

0 comments on commit f5c123c

Please sign in to comment.