启动页面在本地工作正常
http://localhost:3000 http://localhost:3000/shop http://localhost:3000/refinery/pages#home
http://www.myweb.com/无效 在Gemfile中:
root :to => 'refinery/pages#home'
mount Spree::Core::Engine, :at => '/shop'
mount Refinery::Core::Engine, at: Refinery::Core.mounted_path
发生了什么:
http://www.myweb.com/shop =========>工作
http://www.myweb.com/pages/home ===>工作
http://www.myweb.com ==============>您正在寻找的页面不存在。
此处出现问题:http://www.myweb.com无效 不知道为什么。谁能解决这个问题 感谢
答案 0 :(得分:0)
这是我推送后在heroku中找到的内容:
问题:
所以我认为这是炼油厂的错误
2016-11-19T23:47:41.062659+00:00 app[web.1]: Refinery::Page Load (2.3ms) SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."link_url" = $1 LIMIT 1 [["link_url", "/"]]
2016-11-19T23:47:41.077929+00:00 app[web.1]: Refinery::Page Load (1.4ms) SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."menu_match" = $1 ORDER BY "refinery_pages"."id" ASC LIMIT 1 [["menu_match", "^/404$"]]
2016-11-19T23:47:41.118752+00:00 app[web.1]: Rendered public/404.html (1.5ms)
快速解决方案: