我的Rails 4应用的production.rb
包含以下配置:
config.serve_static_files = true
# Compress JavaScripts and CSS.
# config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
# config.assets.compile = true
# Generate digests for assets URLs.
# config.assets.digest = true
config.assets.debug = true
config.assets.enabled = false
但我在heroku发现错误Error Compiling CSS asset ... .css
。
答案 0 :(得分:-1)
这不是资产管道的问题,你有无效的SASS文件!请检查你的括号。它会像这样
.test-div {
.novinka {
padding-top: 10px;
}