Mercurial 将目录子集推送到辅助远程站点

发布于 2024-11-14 11:30:37 字数 268 浏览 0 评论 0原文

我正在考虑在我们的小办公室中使用 Mercurial。我们有一个开发服务器、一个临时服务器和一个实时服务器。实时服务器包含我们的网站,登台服务器包含我们的网站以及一些不应推送到实时服务器的 Intranet 目录。

在设置 Mercurial 时 - 有什么方法能够将整个存储库推送到登台服务器:我们的公共站点以及 Intranet 目录,但是,当推送到实时服务器时仅发送与公共站点关联的那些目录?

换句话说,当推动上演时,推动一切。推送上线时排除内网站点的目录?

-查理

I'm considering using Mercurial in our small office. We've got a development server, a staging server and a live server. The live server contains our web site, the staging server contains our web site and additionally some intranet directories that should not be pushed to the live server.

In setting up Mercurial - is there any way to be able to push the entire repository to the staging server: our public site as well as the intranet directories, but, when pushing to the live server only send those directories associated with the public site?

In other words - when pushing to staging, push everything. When pushing to live, exclude the directories for the intranet site?

-Charlie

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

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

发布评论

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

评论(1

何其悲哀 2024-11-21 11:30:37

推和拉操作仅作用于整个存储库。其他一些可用选项包括:

  • 使用 hg archive -X 构建包含存储库子集的归档文件(仅提示,无历史记录)

  • 将存储库拆分为多个存储库(例如:内部和外部)它们是较大存储库的子存储库。将外部存储库放在开发和登台机器上,并仅将外部存储库推送到生产环境。

The push and pull operations act on the entire repository only. Some other options available are:

  • use hg archive -X to build an archive file with a subset of the repo (tip only, no history)

or

  • split your repo into multiple repos (ex: internal and external) that are subrepos of a larger repo. Have the outer repo on the dev and staging machine, and push only the external repo to production.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文