2013-06-22 155 views
1

这已经困扰我好几天了,自从一个星期前,我推出的Heroku的大概是30次,突然我得到这个错误的错误编译CSS资产的Heroku SASS

我不要使用Sass!它不是在我的gemfile或其他地方!它在localhost中完美工作,我在网上找到的所有答案都不工作!

这是我application.css

/* 
* This is a manifest file that'll be compiled into application.css, which will include all the files 
* listed below. 
* 
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, 
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. 
* 
* You're free to add application-wide styles to this file and they'll appear at the top of the 
* compiled file, but it's generally better to create a new file per style scope. 
* 
*= require_self 
*= require_tree . 
*/ 

没有人有任何想法,为什么Heroku的是给我这个恼人的错误

PS:柜面你想知道,我用堆雪松创建时Heroku的应用程序,所以它不是

谢谢

+0

出于好奇,你的CSS文件是否有效? – cimmanon

回答

0

好了,所以一段时间后,我想通了!

处理这个错误的最简单,不那么快,但压力最小的方法是通过继续Heroku编译错误的文件,在我的情况下是base2.css,然后逐一复制一行css代码并在这里输入CSS Validator,我高度推荐这个,它会告诉你哪些线路有错误,哪些线路没问题。 此外,它会在发现错误的地方重新编写代码,它将完美组织新代码,即使它看起来像只要一本书一样长,它也会是正确的代码。 然后你可以用Minify他们给你的代码把书的长码变成一行。