run app with sudo

This commit is contained in:
Chigozirim Igweamaka 2024-05-27 01:22:24 +01:00
parent e1bde79f8e
commit 55a4b47d11

View file

@ -9,7 +9,7 @@ start_server() {
go build -tags netgo -ldflags '-s -w' -o app
sudo setcap CAP_NET_BIND_SERVICE+ep app
nohup ./app > backend.log 2>&1 &
nohup sudo ./app > backend.log 2>&1 &
}
start_client() {