diff --git a/Makefile b/Makefile index e00cc56..f85ba99 100644 --- a/Makefile +++ b/Makefile @@ -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