parent
892b4cc2a8
commit
1f00dfb03e
8
Makefile
8
Makefile
|
@ -10,18 +10,18 @@ log:
|
|||
@journalctl -f -xeu gowebd.service
|
||||
|
||||
enable:
|
||||
su -c "systemctl enable gowebd.service"
|
||||
systemctl enable gowebd.service
|
||||
|
||||
restart:
|
||||
su -c "systemctl stop gowebd.service"
|
||||
su -c "systemctl start gowebd.service"
|
||||
systemctl stop gowebd.service
|
||||
systemctl start gowebd.service
|
||||
|
||||
run:
|
||||
git pull
|
||||
echo "build it!"
|
||||
GO111MODULE=off go build -v -x
|
||||
./go.wit.com
|
||||
# su -c "setcap 'cap_net_bind_service=+ep' go.wit.com"
|
||||
# setcap 'cap_net_bind_service=+ep' go.wit.com # allow the binary to open ports below 1024
|
||||
|
||||
goimports:
|
||||
goimports -w *.go
|
||||
|
|
Loading…
Reference in New Issue