部署 Rake assets:precompile 引起的错误

hicupp · July 08, 2013 · Last by raven replied at July 08, 2013 · 2413 hits

大家好: 今天在使用 Nginx + Passenger 部署项目。遇到了一个问题,寻求各位高手的帮助。当我执行: rake assets:precompile 报错:

Invalid CSS after "*": expected "{", was "html .fixed" "html" may only be used at the beginning of a compound selector. (in /home/hicupp/rail/testapp/app/assets/stylesheets/application.css)(sass):37 另外我在 production.rb 中已设置:

config.assets.compile = true

这是什么原因啊?

/home/hicupp/rail/testapp/app/assets/stylesheets/application.css

中有 css 语法错误

这个文件是 rails 自身生成的,这不能错吧。

#2 楼 @hicupp application.css 包含你所有自定义的 css 文件内容。所以你要去查一下自定义的 CSS,有错误在里面。

You need to Sign in before reply, if you don't have an account, please Sign up first.