This commit is contained in:
2025-07-18 09:44:45 +08:00
parent 93975b26bc
commit 72f022a727
45 changed files with 67 additions and 281 deletions

View File

@@ -1,18 +1,8 @@
build:
go build
# 配置项
PWD = $(shell pwd)
deploy:
go build -o scheduler
cp -u ./scheduler /opt/scheduler/scheduler
cp -r -u FrontEnd /opt/scheduler/FrontEnd
cp -r -u templates /opt/scheduler/templates
cp -r -u tools /opt/scheduler/tools
ln -sf /opt/scheduler/tools/ZSCWW-Scheduler.service /etc/systemd/system/ZSCWW-Scheduler.service
echo "部署脚本执行完成记得放入以及在tools/start.sh中修改配置文件,在新环境运行时记得带上--init-db参数"
SOURCE_PATH = $(PWD)/src
TARGET_PATH = $(PWD)/build/target
INSTALL_PATH = /opt/scheduler
default: help
clean:
rm ./scheduler
help:
echo "请查看MakeFile文件查看构建选项"
include build/Makefile