Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 762
Lai Yu-Hsuan Avatar asked Oct 09 '22 03:10

Lai Yu-Hsuan


1 Answers

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.

like image 173
John Beynon Avatar answered Oct 13 '22 10:10

John Beynon