ai-digital-live/README.md

36 lines
981 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 数值人直播间
### Start
```shell
git clone git@e.coding.net:starbite/aixiaodui/fengmang-backend.git
npm install
npm run dev
```
打开 [http://localhost:10021/](http://localhost:10021/) 查看效果
### Deploy
**直接部署**
> 需要配置 /mgmt 及 /api 反向代理
```shell
; 如果需要指定前缀(CDN)或者需要运行在相对路径中,不需要则跳过此命令
export PUBLIC_PATH=xxxxxxxx(相应路径)
npm run build
```
生成的资源在dist目录中将此目录中所有文件放置在待部署web目录即可。
#### 直播页面
1、直接正常部署后使用访问 /live.html 即可
2、单独域名部署设置环境变量ONLY_LIVE=yes使用正常编译即可
#### 多语言部署
应用默认使用简体中文进行编译;如果需要指定其他语言需要设置环境变量:`APP_LANGUAGE`;
`APP_LANGUAGE`目前支持的值有:`zh-CN`(中文)、`en-US`(英语)。
**使用docker**
[x] TODO
```shell
dockercompose up -d
```