有没有一种方法,以资产管道资产推到Heroku的时候S3?资产、推到、管道、时候

2023-09-11 09:06:26 作者:饮舟.

有没有一种简单的方法你这个与资产管道,并部署到Heroku上/ S3?

Is there an easy way to you this with the asset pipeline and deploying to heroku / s3?

我想我的本地Rails应用程序在本地使用图像/ CSS / JS按正常。

I would like my local rails app to use image/css/js locally as per normal.

而当你pre-编译,有没有一种简单的方法,用于生产应用程序,以满足它的资产从S3(而开发的资产是本地)。而且还当你pre-编译/部署到Heroku上,新编译的资产被发送至自动S3?

And when you pre-compile, is there an easy way for the production app to serve it's assets from s3 (while dev assets are local). And also when you pre-compile / deploy to heroku, the newly compiled assets are sent up to s3 automatically?

这是为了让开发者(我:D)?不必手动不断更新S3与新部署的文件

This is so the developer (me :D ) does not have to keep manually updating s3 with the new deployed files?

感谢。

推荐答案

我相信这是你要找的内容:

I believe this is what you're looking for:

http://ckdake.com/内容/ 2011 /导轨-31资产上-S3-与-https.html

请确保您使用了最新的宝石,如本指南是导轨3.1(如果你使用3.2 +)

Make sure you use up-to-date gems, as this guide is for rails 3.1 (in case you use 3.2+)

 
精彩推荐