使用heroku上传文件 [英] Uploading files with heroku
问题描述
据我所知 heroku 不允许为单个 Rails 应用存储上传的文件.在他们的文档中,他们提到可以将文件上传到 Amazon S3 实例.
As far as I understand heroku does not allow to store uploaded files for an individual rails app. In their documentation they mention that files can be uploaded to an Amazon S3 instance.
我目前没有 S3 帐户,因此假设我只想从概念验证类型的应用程序开始,注册此类 s3 帐户是否有意义,或者是否有选项(最好与 heroku 结合)允许我在应用部署后上传和存储文件.
I currently don't have an S3 account so assuming I just want to start with a proof of concept type of application does it make sense to sign up for such an s3 accounts or are there options (ideally combinable with heroku) to allow me to upload and store files after the app was deployed.
推荐答案
亚马逊还为新注册用户提供为期 1 年的免费使用套餐.
Amazon also has a free usage tier for 1 year for newly registered users.
因此,对于概念验证应用程序,您可以注册并使用该服务.这是关于如何在 amazon s3 中使用 heroku 的文章的链接
So, for a proof of concept application, you can register and use the service. Here is a link to the article about how to use heroku with amazon s3
http://devcenter.heroku.com/articles/s3
这篇关于使用heroku上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!