parent
892b4cc2a8
commit
1f00dfb03e
8
Makefile
8
Makefile
|
@ -10,18 +10,18 @@ log:
|
||||||
@journalctl -f -xeu gowebd.service
|
@journalctl -f -xeu gowebd.service
|
||||||
|
|
||||||
enable:
|
enable:
|
||||||
su -c "systemctl enable gowebd.service"
|
systemctl enable gowebd.service
|
||||||
|
|
||||||
restart:
|
restart:
|
||||||
su -c "systemctl stop gowebd.service"
|
systemctl stop gowebd.service
|
||||||
su -c "systemctl start gowebd.service"
|
systemctl start gowebd.service
|
||||||
|
|
||||||
run:
|
run:
|
||||||
git pull
|
git pull
|
||||||
echo "build it!"
|
echo "build it!"
|
||||||
GO111MODULE=off go build -v -x
|
GO111MODULE=off go build -v -x
|
||||||
./go.wit.com
|
./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:
|
||||||
goimports -w *.go
|
goimports -w *.go
|
||||||
|
|
Loading…
Reference in New Issue