Skip to content

Commit 696e523

Browse files
committed
refactor: move admin to admin-old
1 parent bde3665 commit 696e523

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+26
-3
lines changed

docker/admin-old.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: "3.3"
2+
3+
services:
4+
# 后台应用
5+
tailchat-admin-old:
6+
build:
7+
context: ../
8+
image: tailchat
9+
restart: unless-stopped
10+
env_file: docker-compose.env
11+
depends_on:
12+
- mongo
13+
- redis
14+
labels:
15+
- "traefik.enable=true"
16+
- "traefik.http.routers.admin-old.rule=PathPrefix(`/admin`)"
17+
- "traefik.http.services.admin-old.loadbalancer.server.port=3000"
18+
networks:
19+
- internal
20+
command: pnpm start:admin-old

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
"start:service": "cd server && pnpm start:service",
1313
"start:admin": "cd server/admin && pnpm start",
1414
"start:admin-next": "cd server/admin-next && pnpm start",
15-
"build": "concurrently npm:build:web npm:build:server npm:build:admin npm:build:admin-next && cp -r client/web/dist/* server/dist/public",
15+
"start:admin-old": "cd server/admin-old && pnpm start",
16+
"build": "concurrently npm:build:web npm:build:server npm:build:admin-old npm:build:admin-next && cp -r client/web/dist/* server/dist/public",
1617
"build:web": "cd client/web && pnpm build",
1718
"build:server": "cd server && pnpm build && echo \"Install server side plugin:\" && pnpm run plugin:install com.msgbyte.tasks com.msgbyte.linkmeta com.msgbyte.github com.msgbyte.simplenotify com.msgbyte.topic com.msgbyte.agora com.msgbyte.wxpusher com.msgbyte.welcome && mkdir -p ./dist/public && cp -r ./public/plugins ./dist/public && cp ./public/registry-be.json ./dist/public",
1819
"build:admin": "cd server/admin && pnpm build",
1920
"build:admin-next": "cd server/admin-next && pnpm build",
21+
"build:admin-old": "cd server/admin-old && pnpm build",
2022
"check:type": "concurrently npm:check:type:client npm:check:type:server",
2123
"check:type:client": "cd client/web && tsc --noEmit",
2224
"check:type:server": "cd server && tsc --noEmit",

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ packages:
77
- 'client/packages/**'
88
- 'server'
99
- 'server/admin'
10+
- 'server/admin-old'
1011
- 'server/admin-next'
1112
- 'server/packages/**'
1213
- 'server/plugins/**'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)