通过 aws.push 部署到 Elastic Beanstalk 时保留某些现有文件 [英] Keep certain existing files when deploying to Elastic Beanstalk through aws.push

查看:23
本文介绍了通过 aws.push 部署到 Elastic Beanstalk 时保留某些现有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在 EC2 服务器上的应用程序目录中有 SOLR,而不是在我们本地的 git 存储库中.当我们将本地存储库推送到 EC2 时,它正在擦除 Solr 目录.我们已经将目录名放在了 .gitignore 文件中,但它仍然覆盖了 SOLR 目录.

We have SOLR in our app directory on EC2 server and not on our local git repository. When we are pushing our local repository to EC2, it is erasing the Solr directory. We have put the directory name in our .gitignore file, but it still overwrites the SOLR directory.

我们如何防止覆盖仅在 EC2 服务器上(在 var/app/current 目录中)的某些文件?

How do we prevent overwriting certain files that are only on the EC2 server (in the var/app/current directory)?

推荐答案

AWS Elastic Beanstalk 实例没有持久存储.EC2 实例在每个 git push 上使用默认文件系统恢复.

AWS Elastic Beanstalk instances do not have persistent storage. EC2 instance is restored with default filesystem on each git push.

您可以将 SOLR 文件保存在 S3 中,并在容器启动时使用容器命令自动检索它们.

You can persist SOLR files in S3 and automatically retrieve them on container startup with container commands.

其他选项在 AWS Elastic Beanstalk 设计注意事项.

这篇关于通过 aws.push 部署到 Elastic Beanstalk 时保留某些现有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆