diff --git a/README.md b/README.md index 926d7307..a2649548 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_DE.md b/README_DE.md index 51d6e0ac..ff9c647f 100644 --- a/README_DE.md +++ b/README_DE.md @@ -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 diff --git a/README_EN.md b/README_EN.md index 5b4aa9d1..79d4f9ad 100644 --- a/README_EN.md +++ b/README_EN.md @@ -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