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