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."
我已经在Heroku上成功部署了Ruby on Rails应用程序。但是,当我访问Heroku提供的URL时,错误说:“您要查找的页面不存在。”
URL - https://cryptic-waters-2558.herokuapp.com/
网址 - https://cryptic-waters-2558.herokuapp.com/
Please help.
请帮忙。
1 个解决方案
#1
3
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
.
您的应用程序已启动并运行,因为错误消息来自Webrick。这个错误的可能原因是缺少一些初始数据(可能你忘了运行heroku run rake db:seed),这会导致ActiveRecord :: RecordNotFound错误。您可以使用heroku日志或heroku日志-t轻松检查这一点,它与tail -f类似。
#1
3
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
.
您的应用程序已启动并运行,因为错误消息来自Webrick。这个错误的可能原因是缺少一些初始数据(可能你忘了运行heroku run rake db:seed),这会导致ActiveRecord :: RecordNotFound错误。您可以使用heroku日志或heroku日志-t轻松检查这一点,它与tail -f类似。