2 ms·
This is almost exactly the same process I use as well for RateMyStudentRental and LeadNuke, with a few exceptions. -Instead of Jammit, I do this with a plugin
by JangoSteve 16y ago
This is almost exactly the same process I use as well for RateMyStudentRental and LeadNuke, with a few exceptions.
-Instead of Jammit, I do this with a plugin + manually written Capistrano deploy script.
-Instead of serving CSS and JS (only 2 files since they're combined and cached) from CloudFront pre-zipped, I serve them from my own server, so I can detect the Accepts-encoding header in the incoming request and serve the appropriate file (so as not to leave out the rare request that does not accept gzip encoding).
-Instead of creating a new s3 bucket every deploy and having to recopy the entire contents of the assets folder, I simply sync the existing folders, and let Rails take care of the file caches by updating the appended modified-date in the filenames themselves.
Anyway, I wrote a how-to post on this just last week if anyone is interested http://www.alfajango.com/blog/caching-zipping-and-cdn-for-a-rails-app/ http://www.alfajango.com/blog/caching-zipping-and-cdn-for-a-...