代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Wayne 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
.PHONY: run-backend run-worker run-frontend syncdb release
MAKEFLAGS += --warn-undefined-variables
# Build variables
REGISTRY_URI :=360cloud
RELEASE_VERSION :=$(shell git describe --always --tags)
UI_BUILD_VERSION :=v1.0.2
SERVER_BUILD_VERSION :=v1.0.2
update-version:
./hack/updateversion.sh
# run module
run-backend:
cd src/backend/ && go run main.go
run-frontend:
cd src/frontend/ && npm start
# dev
syncdb:
go run src/backend/database/syncdb.go orm syncdb
sqlall:
go run src/backend/database/syncdb.go orm sqlall > _dev/wayne.sql
initdata:
go run src/backend/database/generatedata/main.go > _dev/wayne-data.sql
swagger-openapi:
cd src/backend && swagger generate spec -o ./swagger/openapi.swagger.json
## server builder image
build-server-image:
docker build --no-cache -t $(REGISTRY_URI)/wayne-server-builder:$(SERVER_BUILD_VERSION) -f hack/build/server/Dockerfile .
## ui builder image
build-ui-image:
docker build --no-cache -t $(REGISTRY_URI)/wayne-ui-builder:$(UI_BUILD_VERSION) -f hack/build/ui/Dockerfile .
# release, requiring Docker 17.05 or higher on the daemon and client
build-backend-image:
@echo "version: $(RELEASE_VERSION)"
docker build --no-cache -t $(REGISTRY_URI)/wayne-backend:$(RELEASE_VERSION) .
build-frontend-image:
@echo "version: $(RELEASE_VERSION)"
docker build --no-cache -t $(REGISTRY_URI)/wayne-frontend:$(RELEASE_VERSION) -f hack/build/frontend/Dockerfile .
push-image:
docker tag $(REGISTRY_URI)/wayne-backend:$(RELEASE_VERSION) $(REGISTRY_URI)/wayne-backend:latest
docker push $(REGISTRY_URI)/wayne-backend:$(RELEASE_VERSION)
docker push $(REGISTRY_URI)/wayne-backend:latest
docker tag $(REGISTRY_URI)/wayne-frontend:$(RELEASE_VERSION) $(REGISTRY_URI)/wayne-frontend:latest
docker push $(REGISTRY_URI)/wayne-frontend:$(RELEASE_VERSION)
docker push $(REGISTRY_URI)/wayne-frontend:latest
release: build-backend-image build-frontend-image push-image
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。