fix: scripts

update the scripts to source ~/.bashrc in hopes of making sure that npm, turbo, etc. are available
This commit is contained in:
nikomiko 2026-02-08 19:23:59 -05:00
parent 650b09e2c8
commit 227df50f31
2 changed files with 3 additions and 0 deletions

View file

@ -11,6 +11,7 @@ STATIC_DIR=$2
BACKEND_DIR=$3
pwd
source ~/.bashrc # make sure NPM commands etc are available
npm i -g pnpm && pnpm setup
which pm2 || pnpm i pm2 -g
cd $SOURCE_DIR

View file

@ -8,6 +8,8 @@
SOURCE_DIR=$1
source ~/.bashrc # make sure NPM commands etc are available
npm i -g pnpm && pnpm setup && pnpm i -g turbo
cd "$SOURCE_DIR"
git fetch --all && git branch "backup-$(date +'%s')" \