modify the README.md

pull/65/head
hyh123a 2021-10-01 11:49:42 +08:00
parent e1da419a2f
commit 672d3ded10
3 changed files with 7 additions and 6 deletions

View File

@ -114,7 +114,7 @@ sudo nano myems-cleaning/config.py
sudo nano myems-modbus-tcp/config.py sudo nano myems-modbus-tcp/config.py
sudo nano myems-normalization/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' 修改web和admin文件夹下nginx.conf中的location '/api'
@ -122,9 +122,10 @@ sudo nano myems-normalization/config.py
``` ```
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打包生成产品文件 将Web打包生成产品文件
``` ```
cd myems/web cd myems/web

View File

@ -115,7 +115,7 @@ sudo nano myems-cleaning/config.py
sudo nano myems-modbus-tcp/config.py sudo nano myems-modbus-tcp/config.py
sudo nano myems-normalization/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 Ä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 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/; Ändern: proxy_pass http://192.168.2.3:8000/;
``` ```
Verpacken Sie das web, um Produktdateien zu generieren Verpacken Sie das web, um Produktdateien zu generieren

View File

@ -114,14 +114,14 @@ sudo nano myems-cleaning/config.py
sudo nano myems-modbus-tcp/config.py sudo nano myems-modbus-tcp/config.py
sudo nano myems-normalization/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 Modify location '/api' in nginx.conf of web and admin
Assume the Host IP is 192.168.2.3 Assume the Host IP is 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/; modify to: proxy_pass http://192.168.2.3:8000/;
``` ```
Build web for production Build web for production