简体   繁体   English

AWS Elastic Beanstalk-Express.js,更新为empties / uploads文件夹

[英]AWS Elastic Beanstalk - Express.js, update empties /uploads folder

When I update my my app eb push , my /uploads directory gets cleared. 更新我的应用程序eb push/uploads目录将被清除。 I'm using this folder to store images. 我正在使用此文件夹存储图像。 I thought maybe it had to do with git and so I added this folder to the .gitignore , but it still clears the folder on update. 我以为可能与git有关,因此我将此文件夹添加到.gitignore ,但在更新时仍会清除该文件夹。 Why does this happen? 为什么会这样? How do I fix this? 我该如何解决?

I actually just found the answer I was looking for here . 我实际上只是在这里找到了想要的答案。 Quite simply, I need to use cloud storage, like S3. 很简单,我需要使用云存储,例如S3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM