r/programming • • Mar 27 '23

Twitter Source Code Leaked on GitHub

https://www.cyberkendra.com/2023/03/twitter-source-code-leaked-on-github.html
8.0k Upvotes

717 comments sorted by

View all comments

Show parent comments

6

u/Cmacu Mar 27 '23

But how/why would you commit/hardcore local configuration in the code repository? That would practically make testing/staging and production deployments complicated/impossible. What about other devs and their environments? The only case I can think of this making sense is some virtual environment where you have your dev profile preconfigured by administrator, but I can still imagine it being a pain with any type of shared resources like aws s3 or mail server.

-6

u/TheWhyOfFry Mar 27 '23

What does my local setup have to do with production deployments? All production deployments are based on Jenkins built containers and central config repository. No local code should ever be pushed to prod, that makes for impossible to reproduce behavior in an organization of any size.