启动页面在本地运行良好
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不工作不知道为什么。有人能修好这个吗?谢谢
发布于 2016-11-20 09:16:55
这是我在推送后在heroku中发现的:
问题:
logs refinery中的
中的数据错误
所以我应该假设这是一个炼油厂的bug
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)快速解决方案:
编辑记录列"link_url“
https://stackoverflow.com/questions/40690358
复制相似问题