change update to a more stable version
This commit is contained in:
12
start_latest.sh
Executable file
12
start_latest.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
git reset HEAD --hard &&
|
||||
git pull &&
|
||||
cd backend &&
|
||||
rm -r ./frontend &&
|
||||
mkdir frontend &&
|
||||
npm i &&
|
||||
cd ../frontend &&
|
||||
npm i &&
|
||||
npm run build &&
|
||||
mv ./build/* ../backend/frontend &&
|
||||
cd ../backend &&
|
||||
npm start
|
||||
14
update.sh
14
update.sh
@@ -1,14 +0,0 @@
|
||||
BACKENDID = netstat -tulpn 2>/dev/null | grep ":3001 " | awk '{print $7;}' | cut -d "/" -f1
|
||||
kill -9 $BACKENDID
|
||||
git reset HEAD --hard
|
||||
git pull
|
||||
cd backend
|
||||
rm -r ./frontend
|
||||
mkdir frontend
|
||||
npm i
|
||||
cd ../frontend
|
||||
npm i
|
||||
npm run build
|
||||
mv ./build/* ../backend/frontend
|
||||
cd ../backend
|
||||
npm start
|
||||
Reference in New Issue
Block a user