Heroku problem : The page you were looking for doesn't exist

后端 未结 13 1342
你的背包
你的背包 2020-12-24 06:43

I have followed book until chapter 5 finished and it\'s working OK in my linux workstation when I push to Heroku, all data pushed correctly but when I try to open Heroku (ht

13条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 07:30

    Ran into this problem as well. Solved it by setting a root route. In my case, root 'pages#home' in config/routes.rb

    If the root route is not set, you are redirected to localhost:3000. Hence,

    The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved.

提交回复
热议问题