Rails Deployment: moving static files to S3
Someone posted something similar but it didn't really solve the problem.
I want to move all my static files (images, javascript, css) to an Amazon S3 bucket when I deploy my ap开发者_JAVA百科p, as well as rewrite those paths in my app, is there a simple way to accomplish this? or am I in for a huge amount of work here?
The other question was mine :p
I ended up going with a rake task that I tied in with asset_packager and my "normal" heroku deployment process.
I would love something was much smarter and could do the heavy lifting for me though.
I also left an answer at the other question, I'm was looking into the same issue and will give this gem https://github.com/railsjedi/jammit-s3 a try later today.
Hope it helps, Jeroen
精彩评论