Rake task to sync your assets to Amazon S3/Cloudfront

With my move to Heroku I felt bad about having Heroku’s app servers serve static content for me. It’s not really a problem, but I just like to use the best tool available for the job. Because is a rack app, it has a public directory with all static assets in once place. There are, however, a few problems that need adressing. ~ These are the problems I want to resolve: