modify the README.md
parent
e1da419a2f
commit
672d3ded10
|
@ -114,7 +114,7 @@ sudo nano myems-cleaning/config.py
|
|||
sudo nano myems-modbus-tcp/config.py
|
||||
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'
|
||||
```
|
||||
|
||||
修改web和admin文件夹下nginx.conf中的location '/api'
|
||||
|
@ -122,9 +122,10 @@ sudo nano myems-normalization/config.py
|
|||
```
|
||||
sudo nano admin/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打包生成产品文件
|
||||
```
|
||||
cd myems/web
|
||||
|
|
|
@ -115,7 +115,7 @@ sudo nano myems-cleaning/config.py
|
|||
sudo nano myems-modbus-tcp/config.py
|
||||
sudo nano myems-normalization/config.py
|
||||
|
||||
# host: '127.0.0.1' => 'host': '192.168.2.2'
|
||||
# host: '127.0.0.1' Ändern: 'host': '192.168.2.2'
|
||||
```
|
||||
|
||||
Ändern Sie den location '/api' von nginx.conf in web und admin
|
||||
|
@ -123,7 +123,7 @@ Angenommen, die Host-IP lautet 192.168.2.3
|
|||
```
|
||||
sudo nano admin/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/; Ändern: proxy_pass http://192.168.2.3:8000/;
|
||||
```
|
||||
|
||||
Verpacken Sie das web, um Produktdateien zu generieren
|
||||
|
|
|
@ -114,14 +114,14 @@ sudo nano myems-cleaning/config.py
|
|||
sudo nano myems-modbus-tcp/config.py
|
||||
sudo nano myems-normalization/config.py
|
||||
|
||||
# host: '127.0.0.1' => 'host': '192.168.2.2'
|
||||
# host: '127.0.0.1' modify to:'host': '192.168.2.2'
|
||||
```
|
||||
Modify location '/api' in nginx.conf of web and admin
|
||||
Assume the Host IP is 192.168.2.3
|
||||
```
|
||||
sudo nano admin/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/; modify to: proxy_pass http://192.168.2.3:8000/;
|
||||
```
|
||||
|
||||
Build web for production
|
||||
|
|
Loading…
Reference in New Issue