通过修订控制管理多个主机上的 Web 项目

发布于 2024-08-18 03:56:50 字数 1009 浏览 4 评论 0原文

问候! :-)

我想描述一个工作流程策略,其中存在一些空白,如果您能填补空白并提供评论,我将很高兴。如果管理员认为这不能作为一个问题验证,那么请删除。

我正在开发一个网络项目,其中包含 PHP、Javascript (jQuery)、HTML、CSS 和 postgresql 代码的文件,用于数据库内函数、表创建和配置。所有文件都经常更改。我使用阿帕奇。

这就是我想要的:

  • 引入版本控制。
  • 使用构建文件来管理编译和修订控制。
  • 开始使用合适的 IDE。
  • 能够破解我的固定设备和笔记本电脑,几乎不需要浪费时间来保持代码和 IDE 项目配置同步。
  • 对项目进行设置,以便一些朋友(大约 4-5 个)将来可以加入该项目。

这就是我打算开始使用的:

  • Bazaar 用于版本控制和“项目分发”。
  • Ant 用于构建文件。
  • Eclipse 设置了适当的插件来管理 Bazaar 和 Ant。

通过 Bazaar,我打算将代码文件、构建文件甚至 Eclipse 项目配置文件(我在 Eclipse 中创建的与 Web 项目一起使用的项目的配置文件)置于修订控制之下。这样我就可以通过 Bazaar 将所有东西从我的固定设备拉到我的笔记本电脑上。

由于我还将 Eclipse 的项目 conf 文件置于修订控制之下,因此我希望能够毫不费力地直接在我的笔记本电脑上打开 Eclipse 项目。因此,即使我在 Eclipse 中对项目设置进行修改,也应该通过笔记本电脑和主机进行同步。

但我确实有几个问题。您知道我应该如何使用集市,以便当我尝试修改固定设备上的代码但忘记从笔记本电脑推送/签入修改时收到通知或停止吗?

另外我应该如何设置Bazaar,以便其他人将来可以轻松加入该项目?我不喜欢使用像启动板这样的服务,并且希望我的固定设备成为服务器。通过 ssh 执行此操作是否有点风险,因为每次新用户想要加入时,我都必须在我的固定设备上创建一个新用户帐户?

想法?评论?我们将不胜感激。

Greetings! :-)

I would like to describe a workflow strategy with some gaps in it, and I would be glad if you could fill in the gaps and otherwise give comments. If admins think that this does not validate as a question, then please delete away.

I am working on a webproject having files with PHP, Javascript (jQuery), HTML, CSS and postgresql code for in-database functions, table creation and configuration. All files are changed frequently. I use Apache.

This is what I want:

  • Introduce revision control.
  • Use build files for managing compilation and revision control.
  • Start using a proper IDE.
  • Be able to hack on my stationary and laptop with little time wasted on keeping code and IDE project configurations synchronized.
  • Have a setup for the project so some friends (approx 4-5) may join the project in the future.

This is what I am planning to start to use:

  • Bazaar for revision control and "project distribution".
  • Ant for build files.
  • Eclipse setup with proper plugins for managing Bazaar and Ant.

With Bazaar I intend to put code files, build files and even Eclipse project configuration files (configuration files of the project that I create in Eclipse to work with the webproject) under revision control. That way I can pull all that stuff from my stationary to my laptop via Bazaar.

Since I also put Eclipse's project conf files under revision control, I expect that I can without hazzle immediately open the Eclipse project directly on my laptop. So even if I make modifications to the project settings in Eclipse this should also be synchronized over laptop and host.

But I do have a few questions. Do you know how I should use bazaar so that I am notified or stopped when I try to modify the code on my stationary but have forgotten to push/check-in modifications from my laptop?

Also how should I setup Bazaar so that others can easily join the project in the future? I dont like using a service like launchpad, and would like my stationary to be the server. Is it not a bit risky to do it through ssh because I would have to create a new user account on my stationary each time a new user wants to join in?

Thoughts? Comments? It would be appreciated.

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

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

发布评论

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

评论(1

离去的眼神 2024-08-25 03:56:50

关于第一个问题,您应该考虑使用“签出”,也称为绑定分支。这使得 bzr 的行为更像 svn,因为每次提交都会自动发送到“服务器”,并且您不会忘记推送。当然,bzr 无法真正检测到您是否忘记提交某些内容。

关于第二个问题,您可以设置一个通过 HTTP/DAV 运行并使用 Web 服务器的身份验证方法的 bzr 服务器。但是,如果您真的不喜欢其他人使用您的计算机作为服务器,您可能需要考虑使用完全分布式方法,其中您的共同开发人员发布他们自己的分支,然后您提取您想要的东西。

Bazaar 文档 非常好,并且包含有关这些主题的详细信息。

On the first question, you should consider using "checkouts", also called bound branches. That makes bzr behave more like svn in that every commit automatically goes to the "server" and you can't forget to push. Of course, bzr can't really detect if you forget to commit something.

On the second question, you can set up a bzr server that runs over HTTP/DAV and uses the web server's authentication methods. However, if you don't really like other people using your machine as a server, you might want to consider using a totally distributed approach, where your codevelopers publish their own branches and you pull in the things you want.

The Bazaar documentation is quite good and has the details on these topics.

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