Issue Uploading Files from Rails app hosted on Elastic Beanstalk

后端 未结 3 1750
终归单人心
终归单人心 2021-01-12 15:40

I have a Rails 3 app that I\'m developing locally and deploying on Amazon\'s Elastic Beanstalk for production. There\'s several places in my app where images can be uploade

3条回答
  •  囚心锁ツ
    2021-01-12 16:19

    Have you considered direct uploading images into s3 instead? Uploads to the server in Elastic Beanstalk kind of go against the spirit of the thing (file can be deleted if the instance vanishes, the next request could be received by a different instance, etc). I'm not a sys-admin guy either and I'm using elastic beanstalk for the same reason.

    Basically I'm trying to say that by moving to uploading directly into s3 you should be able to leave your servers serving, your database basing the data and your file store store you files. Then hopefully you can be immune from this nonsense :)

提交回复
热议问题