commit
3c3a3515fc
13
README_EN.md
13
README_EN.md
|
@ -65,8 +65,8 @@ This project is compose of following components:
|
||||||
git clone https://gitee.com/myems/myems.git
|
git clone https://gitee.com/myems/myems.git
|
||||||
```
|
```
|
||||||
|
|
||||||
修改文件夹下config.py中的host为数据库IP
|
Modify Database IP in the following files
|
||||||
假定数据库IP为: 192.168.2.2
|
Assume the Database IP is 192.168.2.2
|
||||||
```
|
```
|
||||||
sudo nano myems-api/config.py
|
sudo nano myems-api/config.py
|
||||||
sudo nano myems-aggregation/config.py
|
sudo nano myems-aggregation/config.py
|
||||||
|
@ -76,22 +76,21 @@ sudo nano myems-normalization/config.py
|
||||||
|
|
||||||
# host: '127.0.0.1' => 'host': '192.168.2.2'
|
# host: '127.0.0.1' => 'host': '192.168.2.2'
|
||||||
```
|
```
|
||||||
|
Modify location '/api' in nginx.conf of web and admin
|
||||||
修改web,admin下中nginx.conf的127.0.0.1为本机IP
|
Assume the Host IP is 192.168.2.3
|
||||||
假定本机IP为: 192.168.2.3
|
|
||||||
```
|
```
|
||||||
sudo nano admin/nginx.conf
|
sudo nano admin/nginx.conf
|
||||||
sudo nano web/nginx.conf
|
sudo nano web/nginx.conf
|
||||||
# proxy_pass http://127.0.0.1:8000/; => proxy_pass http://192.168.2.3:8000/;
|
# proxy_pass http://127.0.0.1:8000/; => proxy_pass http://192.168.2.3:8000/;
|
||||||
```
|
```
|
||||||
|
|
||||||
将Web打包生成产品文件
|
Build web for production
|
||||||
```
|
```
|
||||||
cd myems/web
|
cd myems/web
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
使用docker-compose安装
|
Install with docker-compose
|
||||||
```
|
```
|
||||||
cd myems
|
cd myems
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
Loading…
Reference in New Issue