Skip to content

Commit

Permalink
Convert to pnpm because npm no longer works.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisl8 committed Oct 3, 2024
1 parent 79ef25b commit e99469c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/deployToProduction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ fi
pnpm run build

printf "\n${YELLOW}Preparing remote side for update${NC}\n"
ssh.exe "${USER}@${1}" 'cd ~/Witchazzan || exit && git pull && PATH=~/.nvm/current/bin:$PATH ~/.nvm/current/bin/npm ci --omit=dev && mkdir stage'
ssh.exe "${USER}@${1}" 'if ! (command -v pnpm >/dev/null 2>&1);then PATH=~/.nvm/current/bin:$PATH ~/.nvm/current/bin/npm install -g pnpm;fi'
ssh.exe "${USER}@${1}" 'cd ~/Witchazzan || exit && git pull && PATH=~/.nvm/current/bin:$PATH pnpm i --prod && mkdir stage'

printf "\n${YELLOW}Copying new built web files to server${NC}\n"
scp.exe web-dist/* "${USER}@${1}":./Witchazzan/stage
Expand Down

0 comments on commit e99469c

Please sign in to comment.