2024-01-12 04:14:09 -06:00
|
|
|
all:
|
2024-10-08 11:23:44 -05:00
|
|
|
@echo "make run # will build and run the daemon here"
|
|
|
|
@echo "make debian # will build a debian package"
|
|
|
|
@echo "make restart # restart the daemon"
|
|
|
|
@echo "make enable # enable daemon on boot"
|
|
|
|
@echo "make log # watch the daemon log"
|
2024-10-06 22:01:18 -05:00
|
|
|
|
2024-10-08 10:53:57 -05:00
|
|
|
log:
|
|
|
|
@#systemctl status gowebd.service
|
|
|
|
@journalctl -f -xeu gowebd.service
|
|
|
|
|
2024-10-08 11:17:37 -05:00
|
|
|
enable:
|
|
|
|
su -c "systemctl enable gowebd.service"
|
|
|
|
|
2024-10-08 10:53:57 -05:00
|
|
|
start:
|
|
|
|
su -c "systemctl start gowebd.service"
|
|
|
|
|
2024-10-06 22:01:18 -05:00
|
|
|
run:
|
2024-02-10 07:34:58 -06:00
|
|
|
git pull
|
2024-01-12 04:14:09 -06:00
|
|
|
echo "build it!"
|
2024-01-12 14:52:12 -06:00
|
|
|
GO111MODULE=off go build -v -x
|
2024-10-06 16:34:16 -05:00
|
|
|
./go.wit.com
|
2024-02-07 22:14:38 -06:00
|
|
|
# su -c "setcap 'cap_net_bind_service=+ep' go.wit.com"
|
2024-01-12 04:14:09 -06:00
|
|
|
|
2024-01-31 08:45:58 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
2024-01-12 04:14:09 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
2024-10-06 22:01:18 -05:00
|
|
|
# makes a .deb package
|
|
|
|
debian:
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/go.wit.com
|