Giter Site home page Giter Site logo

Comments (5)

yuaanlin avatar yuaanlin commented on June 3, 2024 2

您好,这个问题已经修复了,Zeabur 现在会自动根据 Dockerfile 内 EXPOSE 的端口自动向外映射。

如果您还有任何问题,请直接重新开启这个 issue 或到我们的 Discord 交流群 获得更加即时的技术支持,谢谢。

from zeabur.

yuaanlin avatar yuaanlin commented on June 3, 2024

您需要将程序监听在 环境变量 PORT 的端口上,才能正确暴露您的服务。

例如,如果您的服务是用 Node.js 开发的,则下列写法是错误的:

app.listen(8090)

您必须这样写才能正确暴露服务:

app.listen(process.env.PORT)

from zeabur.

MichaelYuhe avatar MichaelYuhe commented on June 3, 2024

至于支付返回页面 404 的问题,是我们支付服务提供商的 bug ,即将要替换服务商,就能解决这个问题了

from zeabur.

wuyongwen avatar wuyongwen commented on June 3, 2024

您需要将程序监听在 环境变量 PORT 的端口上,才能正确暴露您的服务。

例如,如果您的服务是用 Node.js 开发的,则下列写法是错误的:


app.listen(8090)

您必须这样写才能正确暴露服务:


app.listen(process.env.PORT)

我是使用Dockerfile部署的,Dockerfile

其中expose 8090 指定了暴露端口。

目前访问域名是502错误,我无法得到更多日志无法排查问题.

from zeabur.

iamtsm avatar iamtsm commented on June 3, 2024

您好,这个问题已经修复了,Zeabur 现在会自动根据 Dockerfile 内 EXPOSE 的端口自动向外映射。

如果您还有任何问题,请直接重新开启这个 issue 或到我们的 Discord 交流群 获得更加即时的技术支持,谢谢。

你好,请问这个自动向外映射支持多个端口吗,我部署之后,容器启动正常,但是无法访问
部署ID : 64cf6b93c640bb43db7d8551

from zeabur.

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.