🎨 清理多余文件,修改项目model

This commit is contained in:
2026-04-10 15:38:58 +08:00
parent 6a80fcc388
commit f106960342
221 changed files with 686 additions and 2801 deletions

View File

@@ -5,8 +5,10 @@ SHELL = /bin/bash
BUILD_IMAGE_SERVER = golang:1.22
#请选择node版本
BUILD_IMAGE_WEB = node:20
#当前启用的管理后台前端目录
WEB_DIR ?= web-admin
#项目名称
PROJECT_NAME = github.com/flipped-aurora/gin-vue-admin/server
PROJECT_NAME = git.echol.cn/loser/Go-Web-Template/server
#配置文件目录
CONFIG_FILE = config.yaml
#镜像仓库命名空间
@@ -41,12 +43,12 @@ build-image-server:
build-local:
if [ -d "build" ];then rm -rf build; else echo "OK!"; fi \
&& if [ -f "/.dockerenv" ];then echo "OK!"; else make build-web-local && make build-server-local; fi \
&& mkdir build && cp -r web/dist build/ && cp server/server build/ && cp -r server/resource build/resource
&& mkdir build && cp -r $(WEB_DIR)/dist build/ && cp server/server build/ && cp -r server/resource build/resource
#本地环境打包前端
build-web-local:
@cd web/ && if [ -d "dist" ];then rm -rf dist; else echo "OK!"; fi \
&& yarn config set registry http://mirrors.cloud.tencent.com/npm/ && yarn install && yarn build
@cd $(WEB_DIR)/ && if [ -d "dist" ];then rm -rf dist; else echo "OK!"; fi \
&& if [ -f "package-lock.json" ]; then npm ci && npm run build; else yarn config set registry http://mirrors.cloud.tencent.com/npm/ && yarn install && yarn build; fi
#本地环境打包后端
build-server-local: