refactor: move admin to admin-old

pull/90/head
moonrailgun 2 years ago
parent bde36656d5
commit 696e5232ba

@ -0,0 +1,20 @@
version: "3.3"
services:
# 后台应用
tailchat-admin-old:
build:
context: ../
image: tailchat
restart: unless-stopped
env_file: docker-compose.env
depends_on:
- mongo
- redis
labels:
- "traefik.enable=true"
- "traefik.http.routers.admin-old.rule=PathPrefix(`/admin`)"
- "traefik.http.services.admin-old.loadbalancer.server.port=3000"
networks:
- internal
command: pnpm start:admin-old

@ -12,11 +12,13 @@
"start:service": "cd server && pnpm start:service",
"start:admin": "cd server/admin && pnpm start",
"start:admin-next": "cd server/admin-next && pnpm start",
"build": "concurrently npm:build:web npm:build:server npm:build:admin npm:build:admin-next && cp -r client/web/dist/* server/dist/public",
"start:admin-old": "cd server/admin-old && pnpm start",
"build": "concurrently npm:build:web npm:build:server npm:build:admin-old npm:build:admin-next && cp -r client/web/dist/* server/dist/public",
"build:web": "cd client/web && pnpm build",
"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",
"build:admin": "cd server/admin && pnpm build",
"build:admin-next": "cd server/admin-next && pnpm build",
"build:admin-old": "cd server/admin-old && pnpm build",
"check:type": "concurrently npm:check:type:client npm:check:type:server",
"check:type:client": "cd client/web && tsc --noEmit",
"check:type:server": "cd server && tsc --noEmit",

@ -7,6 +7,7 @@ packages:
- 'client/packages/**'
- 'server'
- 'server/admin'
- 'server/admin-old'
- 'server/admin-next'
- 'server/packages/**'
- 'server/plugins/**'

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@ -1,5 +1,5 @@
import { TcBroker, SYSTEM_USERID } from 'tailchat-server-sdk';
import brokerConfig from '../../../moleculer.config';
import brokerConfig from '../../moleculer.config';
const transporter = process.env.TRANSPORTER;
export const broker = new TcBroker({

@ -1,5 +1,5 @@
{
"name": "tailchat-admin",
"name": "tailchat-admin-old",
"private": true,
"sideEffects": false,
"scripts": {

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Loading…
Cancel
Save