更新Makefile

This commit is contained in:
2025-05-22 21:14:28 +08:00
parent 5350283059
commit 62c0916566

View File

@@ -3,11 +3,11 @@ build:
deploy:
go build -o scheduler
cp ./scheduler /opt/scheduler/scheduler
cp -r FrontEnd /opt/scheduler/FrontEnd
cp -r templates /opt/scheduler/templates
cp -r tools /opt/scheduler/tools
ln -s /opt/scheduler/tools/ZSCWW-Scheduler.service /etc/systemd/system/ZSCWW-Scheduler.service
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