mirror of
https://github.com/Rayzggz/server_torii.git
synced 2025-06-16 12:11:22 +08:00
fix: Get all modules when make
This commit is contained in:
15
Makefile
15
Makefile
@ -5,6 +5,7 @@ all: build
|
|||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
go mod tidy
|
||||||
go build -o server_torii .
|
go build -o server_torii .
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -25,15 +26,15 @@ install: build
|
|||||||
@echo "[Install]" >> $(SERVICE_FILE)
|
@echo "[Install]" >> $(SERVICE_FILE)
|
||||||
@echo "WantedBy=multi-user.target" >> $(SERVICE_FILE)
|
@echo "WantedBy=multi-user.target" >> $(SERVICE_FILE)
|
||||||
|
|
||||||
sudo systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
sudo systemctl enable server_torii
|
systemctl enable server_torii
|
||||||
sudo systemctl start server_torii
|
systemctl start server_torii
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
sudo systemctl stop server_torii
|
systemctl stop server_torii
|
||||||
sudo systemctl disable server_torii
|
systemctl disable server_torii
|
||||||
sudo rm -f /etc/systemd/system/server_torii.service
|
rm -f /etc/systemd/system/server_torii.service
|
||||||
sudo systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
reinstall: uninstall install
|
reinstall: uninstall install
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user