mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
redeploy as root
This commit is contained in:
parent
d016ed4a69
commit
6bf3ee3e68
9
deploy/pull_and_build.sh
Executable file
9
deploy/pull_and_build.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
git pull --rebase
|
||||||
|
|
||||||
|
cd backend
|
||||||
|
make clean
|
||||||
|
make RELEASE=1
|
||||||
|
cd ..
|
||||||
|
|
@ -9,12 +9,7 @@ set +e
|
|||||||
fuser -k 8080/tcp
|
fuser -k 8080/tcp
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
git pull --rebase
|
su host -c 'sh deploy/pull_and_build.sh'
|
||||||
|
|
||||||
cd backend
|
|
||||||
make clean
|
|
||||||
make RELEASE=1
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
sh deploy/install_service.sh
|
sh deploy/install_service.sh
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user