4009214cbc
CI / docker (push) Successful in 7m4s
引入用户端对话/生图与管理端 Provider 配置,统一 invoke 编排、Gateway、请求日志与模型管理;前端按设计规范拆分布局,Go module 更名为 github.com/rose_cat707/Atlas;生图长任务 SSE 推送;管理端登录防爆破;协议与服务类型联动;Replicate 模型同步修复;用户端创作台 UI 重构;管理端创作历史替代请求日志。 Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
973 B
Makefile
44 lines
973 B
Makefile
.PHONY: dev dev-web build build-web run test tidy clean docker-build
|
|
|
|
export GOPROXY ?= https://goproxy.cn,direct
|
|
export GOSUMDB ?= sum.golang.google.cn
|
|
export IMAGE_PREFIX ?= docker.1panel.live/library/
|
|
export APP_IMAGE ?= atlas:latest
|
|
|
|
dev:
|
|
@echo "Run backend and frontend in separate terminals:"
|
|
@echo " make run"
|
|
@echo " make dev-web"
|
|
|
|
dev-web:
|
|
cd web && npm install && npm run dev
|
|
|
|
build-web:
|
|
cd web && npm install && npm run build
|
|
rm -rf internal/api/static/*
|
|
cp -r web/dist/* internal/api/static/
|
|
|
|
build: build-web
|
|
go build -o dist/app ./cmd/app
|
|
|
|
run:
|
|
go run ./cmd/app
|
|
|
|
tidy:
|
|
go mod tidy
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
clean:
|
|
rm -rf dist web/dist internal/api/static/*
|
|
@echo '<!DOCTYPE html><html><head><title>Atlas</title></head><body>Atlas</body></html>' > internal/api/static/index.html
|
|
|
|
docker-build:
|
|
docker build \
|
|
-t $(APP_IMAGE) \
|
|
--build-arg IMAGE_PREFIX=$(IMAGE_PREFIX) \
|
|
--build-arg GOPROXY=$(GOPROXY) \
|
|
--build-arg GOSUMDB=$(GOSUMDB) \
|
|
.
|