mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 08:44:06 +02:00
redeploy service
This commit is contained in:
parent
d9dc6e67b7
commit
a9e5f01018
@ -4,7 +4,7 @@ SERVICE=h4backend.service
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
sudo cp deploy/$SERVICE /etc/systemd/$SERVICE
|
sudo cp deploy/$SERVICE /etc/systemd/system/$SERVICE
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
systemctl enable $SERVICE
|
systemctl enable $SERVICE
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SERVICE=h4backend.service
|
|
||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
sh deploy/remove_service.sh
|
||||||
|
|
||||||
|
# avoid 'could not bind to socket' error
|
||||||
|
fuser -k 8080/tcp
|
||||||
|
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
|
|
||||||
cd backend
|
cd backend
|
||||||
@ -11,7 +14,5 @@ make clean
|
|||||||
make RELEASE=1
|
make RELEASE=1
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
systemctl --user stop $SERVICE
|
sh deploy/install_service.sh
|
||||||
fuser -k 8080/tcp
|
|
||||||
systemctl --user start $SERVICE
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ set -xe
|
|||||||
systemctl stop $SERVICE
|
systemctl stop $SERVICE
|
||||||
systemctl disable $SERVICE
|
systemctl disable $SERVICE
|
||||||
|
|
||||||
sudo rm /etc/systemd/$SERVICE
|
sudo rm /etc/systemd/system/$SERVICE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user