fjykTec / ModernWMS

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。
https://modernwms.ikeyly.com/
Apache License 2.0
821 stars 259 forks source link

使用docker部署后一直提示超时,另外能不能使用php或者django开发一个,.net的搞不懂啊。。。 #21

Open 1537372393 opened 1 year ago

1537372393 commented 1 year ago

使用docker部署后一直提示超时,另外能不能使用php或者django开发一个,.net的搞不懂啊。。。

ModernWMS commented 1 year ago

“使用docker部署后一直提示超时” 描述得清楚一点,有没有对应截图。

ModernWMS commented 1 year ago

“另外能不能使用php或者django开发一个” ,你是打算二开么......

1537372393 commented 1 year ago

用docker部署后,只要有访问接口的地方,比如登录,都提示登录超时。

1537372393 commented 1 year ago

想试试二开,比如增加点功能啥的

1537372393 commented 1 year ago

怎么样大哥,你用docker部署有问题吗

ModernWMS commented 1 year ago

你看下能telnet 通对应的服务端口么。

leucoon commented 1 year ago

image 检查这几个步骤是否有做完整

1537372393 commented 1 year ago

image 检查这几个步骤是否有做完整

这几步做了的,提示连接超时的

1537372393 commented 1 year ago

你看下能telnet 通对应的服务端口么。

Connection to xxx.16.3.110 port 20011 [tcp/*] succeeded! alpha@gankenongdeMacBook-Pro ~ % nc -vz 172.16.3.110 80
Connection to xxx.16.3.110 port 80 [tcp/http] succeeded! 是这样吗

leucoon commented 1 year ago

image 检查这几个步骤是否有做完整

这几步做了的,提示连接超时的

请打开浏览器检查-->网络 ,将浏览器调用后端的地址截图出来看下

1537372393 commented 1 year ago

docker exec -it ffc /bin/bash root@ffcd88e5118e:/app# grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://1XX.XX.3.110:20011#g' sed: no input files root@ffcd88e5118e:/app# exit exit idex@idex:~$ docker exec -it ffc /bin/bash root@ffcd88e5118e:/app# rep -rl "http://127.0.0.1:20011" /frontend bash: rep: command not found root@ffcd88e5118e:/app#

1537372393 commented 1 year ago

我知道原因了: grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://IP address:20011#g' 一开始我就执行了这句命令 后面重新执行换成自己服务器的ip,但是/frontend/assets/request-0e11976b.js的数据已经修改不了了, 所以就grep -rl "http://IP address:20011" /frontend | xargs sed -i 's#http://IP address:20011#http://172.16.3.110:20011#g'替换成功,已经能正确访问了,非常感谢

ModernWMS commented 1 year ago

好的。能跑起来就好。

gongjiangnan commented 8 months ago

改对了以后,chrome 要清空浏览器缓存 ,edge 仍任有问题

i18n-8c339f5c.js:1 TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined. at Proxy.login (login-758d9571.js:1:5020) Wu @ i18n-8c339f5c.js:1 ln @ i18n-8c339f5c.js:1 (匿名) @ i18n-8c339f5c.js:1 Promise.catch(异步) He @ i18n-8c339f5c.js:1 He @ i18n-8c339f5c.js:1 n @ i18n-8c339f5c.js:1 request-0e11976b.js:3

    POST http://127.0.0.1:20011/login?culture=zh-cn net::ERR_CONNECTION_REFUSED

(匿名) @ request-0e11976b.js:3 xhr @ request-0e11976b.js:3 ye @ request-0e11976b.js:3 Promise.then(异步) request @ request-0e11976b.js:3 (匿名) @ request-0e11976b.js:1 Y @ login-758d9571.js:1 login @ login-758d9571.js:1 await in login(异步) l.onClick.e..e. @ login-758d9571.js:1 (匿名) @ i18n-8c339f5c.js:1 yt @ i18n-8c339f5c.js:1 He @ i18n-8c339f5c.js:1 He @ i18n-8c339f5c.js:1 n @ i18n-8c339f5c.js:1 i18n-8c339f5c.js:1 TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined. at Proxy.login (login-758d9571.js:1:5020) Wu @ i18n-8c339f5c.js:1 ln @ i18n-8c339f5c.js:1 (匿名) @ i18n-8c339f5c.js:1 Promise.catch(异步) He @ i18n-8c339f5c.js:1 He @ i18n-8c339f5c.js:1 n @ i18n-8c339f5c.js:1 request-0e11976b.js:3

    POST http://127.0.0.1:20011/login?culture=zh-cn net::ERR_CONNECTION_REFUSED

(匿名) @ request-0e11976b.js:3 xhr @ request-0e11976b.js:3 ye @ request-0e11976b.js:3 Promise.then(异步) request @ request-0e11976b.js:3 (匿名) @ request-0e11976b.js:1 Y @ login-758d9571.js:1 login @ login-758d9571.js:1 await in login(异步) l.onClick.e..e. @ login-758d9571.js:1 (匿名) @ i18n-8c339f5c.js:1 yt @ i18n-8c339f5c.js:1 He @ i18n-8c339f5c.js:1 He @ i18n-8c339f5c.js:1 n @ i18n-8c339f5c.js:1