2013-06-03 16 views
0

我最初使用bootstrap進行了一些原型設計,但隨後我將其刪除。現在,我想推到Heroku的,但不斷收到此錯誤:Heroku認爲我使用bootstrap?不會讓我耙資產:預編譯

Running: rake assets:precompile 
    rake aborted! 
    File to import not found or unreadable: bootstrap. 
    Load path: Sass::Rails::Importer(/tmp/build_1xogapzflu9oq/app/assets/stylesheets/custom.css.scss) 
    (in /tmp/build_1xogapzflu9oq/app/assets/stylesheets/custom.css.scss) 

當然無法辨認,因爲我刪除引導。爲什麼它仍在尋找它?我刪除了tmp中的所有內容,custom.css.scss甚至不存在於我的樣式表中,並且在我的應用程序的任何地方都沒有提及bootsrap!我也試過刪除並重新創建Heroku應用程序。

這裏發生了什麼,我失蹤了?謝謝!

編輯:rake assets:clean在heroku推送或之後沒有做任何事情。

+0

'git status'顯示什麼?那麼'git push heroku master'呢? –

回答

0

檢查app/assets/stylesheets/custom & app/assets/stylesheets/application文件&刪除引導的//=require指令,如果存在的話。

此外,如果問題仍然存在。請執行以下操作:

$ git add . 
$ git commit -am "bootstrap fix" 
$ git push heroku master 

最後,如果仍然出現錯誤。粘貼你的app/assets/stylesheets/application文件,所以我們可以調試發生了什麼

+0

是的,我已經從兩者中刪除了bootstrap要求,重新推送沒有幫助。我當前的application.css只是'* = require_self'和'* = require_tree .'。 – user2089001

+0

你需要再次提交 –

0

如果你有bootstrap gem等,把它從Gemfile中刪除,然後把你的引導css和js文件手動放在適當的assets文件夾中。