如何处理弹性beanstalk部署,以便只上传已更改的文件 [英] How to handle elastic beanstalk deployment so it uploads only changed files

查看:145
本文介绍了如何处理弹性beanstalk部署,以便只上传已更改的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经遇到了弹性豆串的问题,因为我是AWS的新手。我设置了一切并部署了第一个应用程序,到目前为止这么好。但是当我推动了另一个变化,它只是替换了整个文件,而不是只是改变了。在开发过程中,localhost和服务器上有不同的配置,所以会有不同的文件,但在这种情况下,你在本地的服务器是有一些奇怪的。



<你可以建议该怎么做?

解决方案

如果我理解正确,你会问两个问题:


  1. 您只能推送已更改的文件吗?
    从我的理解,我不认为你可以。整个源软件包被上传并可以推送到相同或不同的服务器。每次部署它本质上都是一个新鲜的环境(取决于策略,即蓝绿色)。


  2. 本地vs生产配置文件:
    按顺序要使用不同的文件,您需要仅在源包中提供它们,或者在部署过程中通过将脚本添加到.ebextensions中的.config文件中来进行更改。看看定制弹性豆串容器



I am having issue with elastic beanstalk as I am new to AWS. I setup everything and deployed first app, so far so good. But when I pushed another bunch of changes, it just replaced whole files rather than just changed ones. During the development there are different configs at localhost and server so there will be different files, but in this case what you have in local is in server, which is a bit strange.

Can you suggest what to do ?

解决方案

If I understand correctly, you are asking two questions:

  1. Can you push only changed files? From my understanding, I do not think you can. The entire source bundle is uploaded and could be pushed to the same or different servers. Every time you deploy it is essentially a fresh environment (depending on strategy i.e. blue-green).

  2. Local vs Production config files: In order to use different files, you either need to only provide them in the source bundle, or alter them during the deployment process by adding scripts to a .config file in .ebextensions. Take a look at customizing elastic beanstalk containers

这篇关于如何处理弹性beanstalk部署,以便只上传已更改的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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