Coder Social home page Coder Social logo

Comments (7)

zhangxin-github avatar zhangxin-github commented on June 16, 2024

。。。没有伙伴帮忙吗?

from easy-mock-docker.

K-walker avatar K-walker commented on June 16, 2024

我能够正常运行,没有出现你的问题,但是有个恶心的地方,就是进入他们提供的容器之后,无法使用sudo命令

from easy-mock-docker.

DuanPengfei avatar DuanPengfei commented on June 16, 2024

@zhangxin-github 暂时本地没有复现出来这个报错,有复现流程吗,描述一下吧。

from easy-mock-docker.

DuanPengfei avatar DuanPengfei commented on June 16, 2024

@K-walker 镜像中没有使用 root 用户来操作,在什么场景你需要在容器里面用到 root 呢?

from easy-mock-docker.

K-walker avatar K-walker commented on June 16, 2024

@DuanPengfei 因为我需要配置fe.publicPath 这个参数,但是发现,怎么配置都没用,访问地址还是 localhost:7300 ,我需要加一层路经,比如 我访问 localhost:7300/emock 这个路径是访问首页,其他所有页面都是在这个路径下

from easy-mock-docker.

zsio avatar zsio commented on June 16, 2024

@K-walker 你可以通过其他服务的反向代理实现这个需求,不要试图改变容器内的配置。

from easy-mock-docker.

Ximu-Luya avatar Ximu-Luya commented on June 16, 2024

今天在部署的时候,遇到了和你完全一样的问题,虽然已经过了很久了,希望能帮到之后看到的人。
docker部署好之后直接使用 域名+端口 或者 IP+端口 访问会出现这个问题,在network里显示vendor.js的status为(failed),但点开详情它正常返回了200的,在控制台的报错就是你说的这个net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
如楼上所说,使用反代理即可,我使用了Nginx对服务器绑定的域名进行反代理之后,就正常访问了。

from easy-mock-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.