TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Deploying branches to GitHub.com

178 点作者 tmm1将近 10 年前

8 条评论

100k将近 10 年前
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 未加载
mpdehaan2将近 10 年前
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 未加载
techpeace将近 10 年前
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 未加载
oliverzheng将近 10 年前
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 未加载
cdnsteve将近 10 年前
&quot;spider-skull-island&quot; can I get access?
评论 #9646992 未加载
jontro将近 10 年前
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 未加载
earless1将近 10 年前
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.
ing33k将近 10 年前
Deploy Locks looks interesting. does any one has more info on how this can be achieved in a git pull based deploy flow ?