Browse Source

Merge pull request #59 from colinin/3.0

Update README.md
pull/81/head
cKey 5 years ago
committed by GitHub
parent
commit
5427d165f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      README.en.md
  2. 13
      README.md

12
README.en.md

@ -291,6 +291,18 @@ start-vue-admin.bat
yarn run build:prod
```
### About Docker container
**Step 1**: build the background service, recommend running the batch file directly, parameters of the publish, the content, can see the batch **pay attention to the configuration file, after the release of service requires appsettings. Production. The json file**
**Step 2**: Build the front-end, YARN/NPM build: PROD
**Step 3**: Change nginx proxy server address, ./vueJs/docker/nginx/default.conf
**Step 4**: Run command **sudo docker-compose down && sudo docker-compose -f docker-compose.yml -f docker-compose.override.yml up --build -d**
**Using A CI tool such as Jenkins is recommended to simplify this into a single step**
#### Lints and fixes files
```bash

13
README.md

@ -294,6 +294,19 @@ start-vue-admin.bat
yarn build:prod
```
### 关于docker容器部署
**第一步**: 构建后台服务,推荐直接运行批处理文件,参数为 --publish,具体可参见批处理内容,**注意配置文件,发布后的服务需要 appsettings.Production.json 文件**
**第二步**: 构建前端, yarn/npm build:prod
**第三步**: 变更nginx代理服务器地址, ./vueJs/docker/nginx/default.conf
**第四步**: 运行此命令 **sudo docker-compose down && sudo docker-compose -f docker-compose.yml -f docker-compose.override.yml up --build -d**
**推荐使用 jenkins 之类的ci工具,可以将此简化为一个步骤**
### 代码格式检查以及自动修复
```bash

Loading…
Cancel
Save