Search code examples
ruby-on-railsruby-on-rails-3heroku

how to disable asset pipeline on heroku?


The heroku cedar precompile my assets implicitly, even though I have written:

config.assets.enabled = false

How to disable the assets feature?


Solution

  • The problem is that the application config isn't available when the slug is compiled. This was recently addressed with http://devcenter.heroku.com/articles/labs-user-env-compile but I'm not sure if that will help here.

    For more info on the pipeline on Heroku take a look at http://devcenter.heroku.com/articles/rails31_heroku_cedar

    It looks like the easiest way to prevent asset compilation is to put a file in public/assets/manifest.yml - would presume contents is irrelevant but also disable it via config.assets.enabled just in case.