我需要什么才能使用 CapRover 显示 Rails 应用程序

问题描述

我已经使用 caprover 在数字海洋上部署了我的 Rails 应用程序,一切正常,直到我需要在公共链接中看到我的应用程序,它只显示“这里还没有:/”。

检查日志:

docker service logs srv-captain--spaces-on --since 60m --follow

看起来一切正常

srv-captain--app.1.igsyikoekwki@spaces-on    | [tunemygc,ppid: 1,pid: 7] hooked: GC tracepoints
srv-captain--app.1.igsyikoekwki@spaces-on    | [tunemygc,pid: 7] hooked: action_controller
srv-captain--app.1.igsyikoekwki@spaces-on    | ** [NewRelic][2021-04-23 15:33:48 +0000 81a4f4ff6913 (7)] INFO : Doing deferred dependency-detection before Rack startup
srv-captain--app.1.igsyikoekwki@spaces-on    | * Listening on tcp://0.0.0.0:3000
srv-captain--app.1.igsyikoekwki@spaces-on    | Use Ctrl-C to stop

我在没有运气的情况下更改了仪表板中的容器 HTTP 端口,也将应用程序的端口从 3000 更改为 80,但似乎没有任何效果

我认为可能发生的事情与生产的日志级别有关,如下所示:

https://github.com/caprover/caprover/issues/324

但是换了之后还是什么都看不到。

你能帮我了解我缺少什么来显示我的应用程序吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)