0

The production.rb of my Rails 4 app contains the following configuration:

  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

Yet I have an error Error Compiling CSS asset ... .css at heroku.

enter image description here

pagid
  • 13,559
  • 11
  • 78
  • 104
Mario Honse
  • 289
  • 1
  • 3
  • 10
  • 1
    Please provide more information about the error you get. It's not possible to answer with the given information. – Robin Apr 14 '15 at 06:54
  • Well, look at main.css, there is an error in there. Please look at the relevant part of main.css or post that here, if you don't understand it. – martin Apr 14 '15 at 07:11
  • @martin, as you can see, I disabled css compiling. It's working well on localhsot. – Mario Honse Apr 14 '15 at 09:44
  • @MarioHonse You did not turn off assets compiling.. Please follow this post: http://stackoverflow.com/questions/23687972/how-disable-assets-compilation-on-heroku, you have *config.assets.enabled = false* instead of *config.assets.compile = false*, then my answer make sense, because your Sass Compiler works and throw this error.. – Jan Strnádek Apr 14 '15 at 09:58
  • @JanStrnádek, how what I did different from that answer? – Mario Honse Apr 14 '15 at 13:08
  • You have *config.assets.enabled = false* instead of *config.assets.compile = false* . – Jan Strnádek Apr 14 '15 at 18:32
  • @JanStrnádek, it's commented out – Mario Honse Apr 15 '15 at 04:49

1 Answers1

-1

This is not a problem with assets pipeline, you have invalid SASS file! Please check your parentheses. It will be sth like this

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

}
Jan Strnádek
  • 808
  • 5
  • 16