alexspeller / non-stupid-digest-assets

Fix the Rails 4 asset pipeline to generate non-digest along with digest assets
MIT License
493 stars 87 forks source link

Don't copy assets that already exist #28

Closed maxhollmann closed 9 years ago

maxhollmann commented 9 years ago

I got an exception when deploying to Heroku, saying that certain assets already exist in the non-digest form. This change handles that case.

alexspeller commented 9 years ago

I don't think this can be correct - if the file already exists it must be an older version and should be overwritten instead, otherwise you'll end up with your non digest assets out of date

maxhollmann commented 9 years ago

You're right. I don't have that issue with the current master branch, you should update the gem on rubygems ;)