作为一个团队,我们应该在本地开发并合并到开发服务器上,还是在开发服务器上开发?

发布于 2024-08-27 01:06:34 字数 397 浏览 2 评论 0 原文

最近,我的任务是为基于团队的开发环境编写正式程序。我们有几个项目,每个项目都有多个模块。目前只有两名程序员,但计划扩大到 4-6 名程序员。每个程序员将​​处理相同的项目和可能的页面,这可能会导致过度写入或错误问题。

到目前为止,我想到的理想解决方案是:

  1. 本地开发(WAMP/VM 或自己机器上的某些虚拟服务器实例)。一旦开发人员完成了开发,他们会将其签入 CVS 存储库并将其与其他修复程序等合并。
  2. 然后将 CVS 版本部署到主开发服务器以供开发人员进行测试。
  3. MySQL 数据库保存在主开发服务器上,用户可以远程连接到它。任何架构/数据更改都通过数据库管理员运行,他将通知所有开发人员任何数据库更改(这种情况应该很少见)。

有人看到这个问题或者有更好的解决方案吗?

Recently I was tasked with writing up formal procedures for a team based development enviroment. We have several projects with multiple modules each. Right now there are only two programmers, however there are plans to expand to 4-6 programmers. Each programmer will be working on the same project and possibly pages which may cause over writing or error issues.

So far the ideal solution I have thought up is:

  1. Local development (WAMP/VM or some virtual server instance on their own machine). Once a developer has finished their developments, they check it into the CVS Repository and merge it wih other fixes etc.
  2. The CVS version is then deployed to the primary dev server for testing by the devs.
  3. The MySQL DAtabases are kept on the primary dev server and users may remotely connect to it. Any Schema / Data alterations are run through a DB Admin who will notify all devs of any DB Changes (Which should be rare).

Does anyone see an issue with this or have a better solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

路还长,别太狂 2024-09-03 01:06:34

看起来不错。只是想强调这一非常重要的一点:

确保您在开发服务器中拥有每晚构建。这将有助于在早期阶段发现问题

顺便说一句,当我们这样做时,如果您不知道的话,Joel 有一个非常好的 软件团队质量的 12 点体系

摘录

1 Do you use source control?
2 Can you make a build in one step?
3 Do you make daily builds?
4 Do you have a bug database?
5 Do you fix bugs before writing new code?
6 Do you have an up-to-date schedule?
7 Do you have a spec?
8 Do programmers have quiet working conditions?
9 Do you use the best tools money can buy?
10 Do you have testers?
11 Do new candidates write code during their interview?
12 Do you do hallway usability testing?

Looks good. Just wanted to highlight this one very important point:

Make sure you have nightly builds in to the dev server. This will help catch problems at very early stages

By the way, while we are at it and in case you arent aware, Joel has a very good 12 point system for Quality of a Software Team

Excerpt

1 Do you use source control?
2 Can you make a build in one step?
3 Do you make daily builds?
4 Do you have a bug database?
5 Do you fix bugs before writing new code?
6 Do you have an up-to-date schedule?
7 Do you have a spec?
8 Do programmers have quiet working conditions?
9 Do you use the best tools money can buy?
10 Do you have testers?
11 Do new candidates write code during their interview?
12 Do you do hallway usability testing?
挽手叙旧 2024-09-03 01:06:34

您描述的模型是我最常看到和使用的模型。我认为每个开发人员拥有自己的本地副本会更高效且风险更小。如果所有代码仅存在于开发服务器上,则开发服务器的中断会停止所有开发。通过分布式模型,您还可以获得更少的网络流量。

The model you describe is the one I've seen and used most often. I think each developer having their own local copy is more efficient and less risky. If all the code only exists on the dev server, an outage of the dev server stops all development. You also get less network traffic with a distributed model.

与酒说心事 2024-09-03 01:06:34

我认为你应该使用数据库的本地版本而不是实时版本。这将使测试变得更容易,并且开发人员不必担心其他开发人员编辑数据。

I think you should use a local version of your database not a live version. This will make testing easier and the developers wont have to worry that another developer edits data.

满栀 2024-09-03 01:06:34

在本地测试、合并更改然后部署的想法听起来不错。另一种选择(每个人都在一台服务器上开发)听起来像是一场即将发生的灾难。

不过,您可能想尝试从 CVS 升级。 Subversion 与 CVS 类似,但更现代。如果你想彻底改变你的思维方式,你可以尝试像 Git 这样的东西。

The idea of testing locally, merging changes and then deploying sounds good. The alternative (everyone developing on one server) sounds like a disaster waiting to happen.

You might want to try upgrading from CVS though. Subversion is similar to CVS but more modern. If you want to completely change your way of thinking, you could trying something like Git.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文