Joined March 2013
·
Achievements
29 Karma
0 Total ProTip Views
Charity
Fork and commit to someone's open source project in need
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Forked
Have a project valued enough to be forked by someone else
I good thing to remember is that you need the manifest.json stored in public/assets. So you can't just add a rake assets:clobber to the
rake assets:clean
hook orrm -rf public/assets
Which I learned the hard way. Without the manifest, rails wont be able to find the assets. It tries to find the fingerprinted filepath stored in the manifest, and uses the asset_host to find the file on S3.I say
assets:clean
because that is run just before the slug compress during the build heroku does. Normally assets:clean removes old versions of your assets. But since it's a fresh slug it doesnt delete anything (sorry if Im wrong).You could refactor your script by