如何处理弹性beanstalk部署,以便只上传已更改的文件 [英] How to handle elastic beanstalk deployment so it uploads only changed files
问题描述
<你可以建议该怎么做?
如果我理解正确,你会问两个问题:
-
您只能推送已更改的文件吗?
从我的理解,我不认为你可以。整个源软件包被上传并可以推送到相同或不同的服务器。每次部署它本质上都是一个新鲜的环境(取决于策略,即蓝绿色)。 -
本地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:
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).
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屋!