From d12e82347f541373b1b47bfff045daa8e98b75c9 Mon Sep 17 00:00:00 2001 From: Oliver Boehlk Date: Thu, 30 Apr 2020 23:13:11 +0200 Subject: [PATCH] change update to a more stable version --- start_latest.sh | 12 ++++++++++++ update.sh | 14 -------------- 2 files changed, 12 insertions(+), 14 deletions(-) create mode 100755 start_latest.sh delete mode 100755 update.sh diff --git a/start_latest.sh b/start_latest.sh new file mode 100755 index 0000000..84ac4e5 --- /dev/null +++ b/start_latest.sh @@ -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 \ No newline at end of file diff --git a/update.sh b/update.sh deleted file mode 100755 index 6618e17..0000000 --- a/update.sh +++ /dev/null @@ -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 \ No newline at end of file