From e99469c74ca184d2ee7eb1908ee5ac9a580ab710 Mon Sep 17 00:00:00 2001 From: Christen Lofland Date: Thu, 3 Oct 2024 16:51:20 -0500 Subject: [PATCH] Convert to pnpm because npm no longer works. https://github.com/npm/cli/issues/4028 --- scripts/deployToProduction.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/deployToProduction.sh b/scripts/deployToProduction.sh index 70c45d69..c103eac1 100755 --- a/scripts/deployToProduction.sh +++ b/scripts/deployToProduction.sh @@ -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