自动部署文件到Amazon S3? [英] Automate deployment of files to Amazon S3?

查看:159
本文介绍了自动部署文件到Amazon S3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Rails项目,我将部署到壮观真棒的Heroku

I have a Rails project that I will be deploying to the spectacularly awesome Heroku.

我真的希望能够自动自动推着我的资源到Amazon S3,资源,在这种情况下是我的图片,样式表和javascript。

I would really like to be able to automate pushing my resources to Amazon S3 automatically, resources in this case being my images, stylesheets and javascript.

很显然,我可以写某种Capistrano的任务,要做到这一点我自己,但没有人知道的东西,已经做了这个?

Obviously I can write some sort of capistrano task to do this myself, but does anyone know of something that does this already?

请注意:我并不需要能够给用户文件上传到S3和我一样已经通过回形针。我说的是为运营网站所需的实际项目文件。

Note: I don't need to be able to upload user-files to S3 as I do that already via paperclip. I am talking about the actual project files required to run the site.

推荐答案

我发现了一个很好的文章,实际上解释了有关法中缩小,COM preSS和使用上载静态conetents(JS / CSS)到Amazon S3 Capistrano的脚本。

I found a good article which actually explain about the method to minify, compress and upload the static conetents (js/css) to Amazon S3 using Capistrano script.

查看文章的的http://www.makeurownrules.com/ruby-on-rails/minify-com$p$pss-synch-amazons3-capistrano

干杯, 卡皮尔

这篇关于自动部署文件到Amazon S3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆