TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Deploying branches to GitHub.com

178 pointsby tmm1almost 10 years ago

8 comments

100kalmost 10 years ago
I really enjoy reading how organizations have implemented continuous deployment.<p>One question I have which is not addressed by the article is how to deal with database changes. Every database has difficulty with schema migrations to one degree or another, but MySQL (which IIRC is what GitHub uses) is particularly bad. In my organization, we are VERY careful with any deploy that contains a migration.<p>(I suppose this is where GitHub&#x27;s staging environments with real world datasets come in.)<p>One workaround I&#x27;ve considered is automatically deploying code that doesn&#x27;t contain a migration (which is the vast majority) and forcing a more manual approach to database migrations, to make sure people are on hand to roll it back if necessary.
评论 #9647008 未加载
评论 #9648541 未加载
mpdehaan2almost 10 years ago
The &#x27;merged once deployed to production&#x27; thing, yes, I know even if advocated by GitHub, seems extremely weird to me. It does seem they have a staging check first, which is good.<p>It seems you&#x27;d want to merge it first, so that you know it when merged with &quot;all the things&quot; on master, so it more closely mirrors what you are going to get once it&#x27;s merged in.<p>So they could just merge first, and then if staging passes in their CI system, automatically deploy to prod, which is the way many orgs do it.<p>My point is though, you&#x27;d want to deal with the merge fun (if any) first, else you are deciding to test branches (pull requests) that only have ALL of the commits from master (rebased, etc), so it&#x27;s easier to just make sure they hop on master first, else you might &quot;remove&quot; something from prod for a while until it&#x27;s merged in. Not good.<p>They may have some things to deal with that, but in this case, it doesn&#x27;t seem like something I&#x27;d recommend for most people, and feels weird and organically evolved. One branch may not have the commits another has and both could be deployed without merging, leaving the github deployed code state fluctuating back and forth as one commit drops out and another drops in, before finally both are in at the same time.<p>I wonder how this is handled?
评论 #9646933 未加载
评论 #9648350 未加载
评论 #9649192 未加载
techpeacealmost 10 years ago
If one of your developer&#x27;s Campfire (assuming y&#x27;all still use this) accounts gets popped, does the attacker now have the ability to deploy to production, or is there some other mitigating factor not mentioned here?
评论 #9648103 未加载
评论 #9646732 未加载
oliverzhengalmost 10 years ago
If I read this correctly, only 1 dev can test on production at a time. How does this scale as the company grows?
评论 #9649210 未加载
评论 #9648989 未加载
评论 #9648405 未加载
cdnstevealmost 10 years ago
&quot;spider-skull-island&quot; can I get access?
评论 #9646992 未加载
jontroalmost 10 years ago
We&#x27;re following github flow and are currently doing these steps manually on deployment (i.e. merge branch with master, check out branch). Then roll back to master if something fails, otherwise merge master with the branch. It would be great with some tooling to help this. Has someone done open source work on this already?
评论 #9646730 未加载
earless1almost 10 years ago
I&#x27;ve been trying so hard to move my organization towards a chatops approach. We are making progress, it&#x27;s just slower than I want.
ing33kalmost 10 years ago
Deploy Locks looks interesting. does any one has more info on how this can be achieved in a git pull based deploy flow ?