Topic: Assets Compilation

Hey all,

So I ran assets:precompile and started up my production server for the first time and it crashed. The log file said some assets were not precompiled. It makes since because I don't have them listed in the application.css or application.js because I only use them in certain layouts.

I got it to work by changing config.assets.precompile = true then waited for the longest request ever and its all up and running. I would like to be able to some how compile them on later releases without going through this. Does any one know how to handle this situation.

Thank you

Re: Assets Compilation

If any one else runs into this issue check out http://stackoverflow.com/questions/8162 … production

In short
config.assets.precompile += ['name-of-file-not-in-manifest.js', 'name-of-other-file-not-in-manifest.js']

Last edited by tyger86 (2012-10-16 17:43:49)