We are storing our PHP project on github.
For fast deployment we are using .bat file for git pushing changes to AWS Elastic Beanstalk cloud:
"C:Program Files (x86)Gitinsh.exe" --login -i -c "git aws.push --environment envname"
We are making commit every time before push, and it's working just perfect, as expected.
Unfortunately, for some reason, sometime it is pushing really quick (just pushing difference in PHP Code changes), but sometimes it is sending whole 300mb project (with all media).
Is there any way to git push only changed diference? Maybe there is any additional parameters on push or preparation git commands before send? Or maybe there is some way to tell AWS EB to pull last commit from github repository?
Thanks for any help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…