开发者

Rails Deployment: moving static files to S3

开发者 https://www.devze.com 2022-12-23 22:04 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消