Rails 4: CSS 没有在本地和 heroku 上编译

Rails 4: CSS not compiling locally and on heroku

所以其中一个css文件不愿意预编译。它在本地完全显示正确,但当我部署到 heroku 时却不是。我不知道如何找到一个列为空白的文件!不知道如何调试这个。

本地: Heroku http://lightandlovehome.herokuapp.com/

$ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:precompile

I, [2015-11-09T16:21:21.724849 #8701]  INFO -- : Writing /Users/Rex/Desktop/Websites/Projects/lightandlovehome/public/assets/application-b57e39a8d705bcd68793dbb0b14906bde170c536c09e9e26387ca5fb01f19471.css
rake aborted!
Sprockets::FileNotFound: couldn't find file '' with type 'text/html'

代码:https://github.com/rexfng/lightandlovehome

问题已解决。 polymer-elements-rails

中我的 gem 文件之一有问题

对于未来的调试器,尝试了解资产管道的工作原理,然后一个一个地检查所有文件;)

这是帮助我奠定基础的 railscast:https://www.youtube.com/watch?v=l0E-D53gEL0

第 4 行 app/assets/stylesheets/static_pages.css.scss 内部有错误。

试试这个:

@import url('//fonts.googleapis.com/css?family=Varela+Round|Oswald:400,300,700');