连接炼油厂CMS与Amazon S3的Web服务炼油厂、CMS、Amazon、Web

2023-09-11 09:54:12 作者:一世琉璃白

我有问题,连接炼油厂CMS的网站与亚马逊S3服务用于存储数据。 我发现这个教程官方refinerycms网站: http://refinerycms.com/guides/amazon-s3-for-uploads

1)我有关于音调的问题: - S3_KEY - S3_SECRET - S3_BUCKET - S3_REGION 我的问题是 - 我可以任意选择键,或者这些密钥介于亚马逊/炼油厂被发现?如果以后 - 是的,我在哪里可以找到他们呢? 我应该怎么键入S3_REGION(我在奥地利)?

2)插入钥匙后,什么是下一个步骤? 我需要重新上传到亚马逊我希望我的网站包含的所有图片? (原来的问题是 - 在网站的图片可以在当地看到的,而不是在Heroku(其中我的应用程序目前正在部署),因为Heroku的是只读的)。 我失去了一个链接如何将所有的功能,当我将这些密钥。 可能有人请澄清这一点?

谢谢, ð。

解决方案

键是在 https://portal.aws.amazon.com/gp/aws/securityCredentials

图片,文件,并在炼油页面类似于在所有数据 Rails应用程序:什么在你的开发应用是不一样的 您的生产应用程序。当地的图像被添加到本地文件夹 并引用您的数据库,因此,即使把它们上传到亚马逊 是行不通的,你也想需要上传你的数据库(的Heroku DB:推)。尽量记住,一个CMS的一点是,你不 要推新的code添加内容如图片的网站。

I'm having problem connecting refinery cms's web site with amazon s3 service for storing data. I've found this tutorial on official refinerycms web site: http://refinerycms.com/guides/amazon-s3-for-uploads

1) I'm having problems concerning keys: - S3_KEY - S3_SECRET - S3_BUCKET - S3_REGION My question is - can I arbitrarily choose keys, or are these keys somewhere to be found in Amazon/Refinery? If later -yes, where can I found them? What should I type for S3_REGION (I'm in Austria)?

SyncBackPro V7中文完美破解版下载 附序列号 软件学堂

2) After the keys are inserted, what is the next step? Do I need to re-upload all the images on Amazon I want my site to contain? (The original problem was - images in the site could be seen locally, but not on Heroku (where my app is currently deployed) because Heroku is read-only). I'm missing a link how it will all function when I insert these keys. Could someone please clarify this?

Thanks, D.

解决方案

The keys are in https://portal.aws.amazon.com/gp/aws/securityCredentials

Images, files, and pages on Refinery are similar to all data in a Rails app: what's in your development application is not the same as your production app. Your local images are added to a local folder and referenced in your database, so even uploading them to Amazon wouldn't work, you'd also need to upload your database (heroku db:push). Try to remember, the point of a CMS is that you don't have to push new code to add content like images to the site.