Connecting refinery cms with Amazon S3 web services

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 03:23:40

问题


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)?

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.


回答1:


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

  2. 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.



来源:https://stackoverflow.com/questions/11916750/connecting-refinery-cms-with-amazon-s3-web-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!