2013-10-21 7 views
0

該應用程序在本地運行良好,但是當我在生產中打開煉油應用程序時 - 主頁缺失。我轉移了我的移民,但仍然沒有幫助。令人驚訝的是,聯繫人,博客和首頁顯示減去CSS。我所看到的所有錯誤都是寫下來的一個橫幅 - 對不起,一定是錯誤的,或者你一定錯誤地輸入了地址。'在生產中添加新頁面'無效

此外,我已經包括bootstrap和bootstrap響應我的項目,所有的CSS文件正在編譯。

跟隨誤差我從終端

Started GET "/assets/refinery/application.css.scss" for 127.0.0.1 at 2013-10-21 14:41:41 +0530 
Served asset /refinery/application.css.scss - 404 Not Found (25ms) 
Processing by Refinery::PagesController#show as 
    Parameters: {"path"=>"assets/refinery/application.css", "locale"=>:en} 
    Rendered public/404.html (0.1ms) 
Filter chain halted as :find_page rendered or redirected 
Completed 404 Not Found in 29ms (Views: 9.6ms | ActiveRecord: 10.1ms) 
Started GET "/assets/refinery/about.css.scss" for 127.0.0.1 at 2013-10-21 14:41:41 +0530 
Served asset /refinery/about.css.scss - 404 Not Found (21ms) 
Processing by Refinery::PagesController#show as 
    Parameters: {"path"=>"assets/refinery/about.css", "locale"=>:en} 
    Rendered public/404.html (0.1ms) 
Filter chain halted as :find_page rendered or redirected 
Completed 404 Not Found in 31ms (Views: 16.6ms | ActiveRecord: 1.8ms) 

請幫幫忙,thanx提前:)

+0

只是爲了測試,在你的'config/environments/production.rb'中爲'config.serve_static_assets'應用'true'。 – JoJoS

回答

0

的問題來了,由於引導拿了出來, 不得不重新命名我的application.css - >應用.css.scss

也做了@imports引導
請確保您有需要「引導」在配置