我已经在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应用程序?
发布评论