chain updating website commands, this probably didn't work before
This commit is contained in:
parent
ed085222f0
commit
dbf2abca6b
1 changed files with 8 additions and 3 deletions
11
helperbot
11
helperbot
|
|
@ -243,11 +243,16 @@ function system_upgrade {
|
|||
echo "${red}Error(site)${normal}: npm is not installed. Please install it and try again. Beep!"
|
||||
exit 1
|
||||
fi
|
||||
cd /var/www/site && /var/www/site/gen.sh
|
||||
cd /var/www/site && git pull && \
|
||||
npm install && \
|
||||
rm -rf ./_site && \
|
||||
npx @11ty/eleventy && \
|
||||
npx -y pagefind --site _site
|
||||
# pds-dash
|
||||
echo "${blue}Updating pds-dash...${normal}"
|
||||
git pull /var/www/pds-dash
|
||||
cd /var/www/pds-dash && deno install && deno task build
|
||||
cd /var/www/pds-dash && git pull && \
|
||||
deno install && \
|
||||
deno task build
|
||||
# done
|
||||
echo "${green}System upgrade finished! beep!~${normal}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue