1

I am trying to host a few sites off a single amazon linux elastic beanstalk micro-instance using AWS. i have one git repo that hosts all the sites. but when i add the last site to the local repo and try to push it i get this error: "Source bundle exceeds maximum allowed size: 524288000"

I have tried breaking it up into multiple pushes but I have read that when you do a git push all the files in the repo are uploaded, not just the changes, and thus trying to add files one at a time wouldn't even work because ultimately if the size of the repo is bigger than the limit i would never be able to push it.

is this true that git uploads the whole repo every single time rather than just the changes, and if so, how am i to resolve this issue? this has been posted a few times on the web since at least 2012 but i haven't seen any answers

2 Answers 2

0

I fixed it, the folders were simply too big so I added certain ones to my .gitignore

3
  • how did you fix this issue?
    – Matt
    Apr 29, 2015 at 3:06
  • by adding certain large folders to the .gitignore file I was able to reduce the size of the bundle to be uploaded
    – modest_max
    Apr 29, 2015 at 6:48
  • genius solution! Sep 16, 2019 at 13:35
0

I just came across this issue as well, and thought that I'd share the fix for posterity.

Jenkins pipeline execting NPM build of Nuxt application had a Gulp build (with cleanup) that wasn't sufficiently doing its job. The workspace was accumulating extra cruft, and the option to "Delete workspace before build starts" resolved the issue, bringing build size down from 504M to 111M.

2
  • how do i do this when i am using the UI?stackoverflow.com/questions/77394609/…
    – x89
    Oct 31 at 9:13
  • @x89 go to configure the specific build Under "Build Environment" section there is a checkbox for "Delete workspace before build starts" and you just check that before saving the configuration. Nov 1 at 20:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.