资产管道已关闭,但“编译资产错误”#34;

时间:2015-04-14 06:38:25

标签: ruby-on-rails ruby ruby-on-rails-4 heroku assets

我的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

enter image description here

1 个答案:

答案 0 :(得分:-1)

这不是资产管道的问题,你有无效的SASS文件!请检查你的括号。它会像这样

.test-div {
  .novinka {
    padding-top: 10px;

}