fix: scripts
update the scripts to source ~/.bashrc in hopes of making sure that npm, turbo, etc. are available
This commit is contained in:
parent
650b09e2c8
commit
227df50f31
2 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
stage.sh
2
stage.sh
|
|
@ -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')" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue