How to configure Rails 3 assets pipeline to just copy all app/assets contents to public/assets in production?

StackOverflow https://stackoverflow.com/questions/23510659

문제

I need from my Rails 3 app just to copy the dir and file tree structure from app/assets to public/assets, flattened (all images, javascripts etc. must go just to public/assets, maintaining their subfolder structure). Don't ask me why.

I don't want merging CSS and JS files into a single files, don't want digests, don't want compression.

Thanks.

도움이 되었습니까?

해결책

What you want to do isn't to configure the asset pipeline; it's to disable it.

You can do this by setting config.assets.enabled = false in your config/application.rb.

Then instead of putting all of your assets in app/assets, just put them in public and refer to them as normal.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top