代码拉取完成,页面将自动刷新
同步操作将从 联犀/物联网iot模块 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- coding:utf-8 -*-
.PHOmakeNY: build
build:build.clean mod cp.etc build.api build.dg build.dm build.ud
runall: run.dm run.dg run.ud run.api
buildone:build.clean mod cp.etc build.api moduleupdate build.core build.front
#仅编译后端
buildback: build.clean mod cp.etc build.api
packback: buildback toremote
packbackzhou: buildback toremotezhou
moduleupdate:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>$@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@git submodule update --init --recursive
@git submodule foreach git checkout master
@git submodule foreach git pull
build.front:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>$@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@mkdir -p ./cmd/core/dist/app/things
@cd module/front/things && yarn install && yarn run build && cp -rf ./dist/* ../../../cmd/core/dist/app/things
build.core:
@mkdir -p ./cmd/core
@cd module/core && make buildone
@cp -rf module/core/cmd/* ./cmd/core
build.coreback:
@mkdir -p ./cmd/core
@cd module/core && make buildback
@cp -rf module/core/cmd/* ./cmd/core
toremote:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>tormote cmd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@rsync -r -v ./cmd/* root@120.79.205.165:/root/git/iThings
toremotezhou:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>tormote cmd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@rsync -r -v ./cmd/* root@139.159.188.223:/root/git/iThings
killall:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>killing all<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@killall apisvr &
@killall dgsvr &
@killall syssvr &
@killall dmsvr &
@killall timedjob &
@killall timedscheduler &
build.clean:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>clean cmd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@rm -rf ./cmd/*
mod:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>downloading $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go mod tidy
cp.etc:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>copying etc<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@mkdir -p ./cmd/things/etc/
@mkdir -p ./cmd/things/dist/
@cp -rf ./service/apisvr/etc/* ./cmd/things/etc/
build.api:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/thingsvr ./service/apisvr
build.dg:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/dgsvr ./service/dgsvr
build.dm:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/dmsvr ./service/dmsvr
build.ud:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/udsvr ./service/udsvr
run.api:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./apisvr & cd ..
run.view:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./viewsvr & cd ..
run.dg:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./dgsvr & cd ..
run.dm:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./dmsvr & cd ..
run.ud:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./udsvr & cd ..
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。