Files
scheduler/Makefile
2025-05-22 21:14:28 +08:00

19 lines
551 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

build:
go build
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参数"
default: help
clean:
rm ./scheduler
help:
echo "请查看MakeFile文件查看构建选项"