无法看到部署在Heroku上的Ruby on Rails应用程序?

编程入门 行业动态 更新时间:2024-10-27 20:34:35
本文介绍了无法看到部署在Heroku上的Ruby on Rails应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在Heroku上成功部署了Ruby on Rails应用程序。但是,当我访问Heroku给出的URL时,错误表示:您正在查找的页面不存在。

URL - cryptic-waters-2558.herokuapp/

请帮助。 您的应用程序已启动并正在运行,因为错误消息来自 Webrick 。此错误的可能原因是缺少一些初始数据(可能您忘记运行 heroku run rake db:seed ),这会导致 ActiveRecord :: RecordNotFound 错误。您可以使用 heroku日志或 heroku日志-t 轻松检查它,其工作方式类似于 tail -f 。

I have successfully deployed Ruby on Rails app on Heroku. But when I visit the URL given by Heroku, error says: "The page you were looking for doesn't exist."

URL - cryptic-waters-2558.herokuapp/

Please help.

解决方案

Your application is up and running, since the error message comes from Webrick. Probable cause of this error is lack of some initial data (maybe you forgot to run heroku run rake db:seed), which causes ActiveRecord::RecordNotFound error. You can check this easily with heroku logs or heroku logs -t, which works similar to tail -f.

更多推荐

无法看到部署在Heroku上的Ruby on Rails应用程序?

本文发布于:2023-10-13 09:31:30,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   Heroku   Ruby   Rails

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!