保持一定的现有文件通过aws.push部署到弹性魔豆时,弹性、魔豆、文件、push

由网友(倦忌 - EROS')分享简介:我们有SOLR在我们的EC2服务器,而不是在我们当地的Git代码库的应用程序目录。当我们正在推动我们的本地资源库EC2,它被擦除的Solr目录。我们已经把该目录名在我们的.gitignore文件,但它仍然会覆盖SOLR目录。We have SOLR in our app directory on EC2 server...

我们有SOLR在我们的EC2服务器,而不是在我们当地的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.

我们如何prevent覆盖的仅仅是EC2服务器上(在var / APP /当前目录)某些文件?

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

推荐答案

AWS弹性魔豆实例没有持久性存储。 EC2实例恢复与默认文件系统上的每个混帐推。

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

您可以坚持S3 SOLR文件,并自动检索这些集装箱的启动与容器的命令。

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

其他选项提到在的 AWS弹性魔豆设计考虑的。

阅读全文

相关推荐

最新文章