2016-11-19 65 views
0

啓動頁面在當地的Heroku根:到=> '煉油廠/頁#家' 不行

工作的罰款

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

這裏我在Heroku上發現推後:

問題:

  • 在日誌煉油廠搜索與[「LINK_URL」記載,「/」,但沒有 那在數據錯誤不routes.rb中

所以我應該以爲這是煉油廠的錯誤

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」 與 「/」
相關問題