用于 Web 部署的 Mercurial HG Archive 子目录

发布于 2024-09-26 22:18:39 字数 94 浏览 0 评论 0原文

我有一个 Mercurial 存储库,其中包含设计文件的子目录和代码文件的子目录。

在我的服务器上部署代码子目录、保持其安全而不部署设计文件的最佳方法是什么?

I've got a Mercurial repository that contains a subdirectory for design files and a sub directory for code files.

What's the best way for me to deploy the code subdirectories on my server, keeping it secure, without deploying the design files?

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

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

发布评论

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

评论(2

寄意 2024-10-03 22:18:39

理想情况下,您应该将它们放在单独的存储库中,正如凯尔指出的那样,可以选择使用子存储库。

但是,根据您的设置,您可能需要这样的东西:

hg archive -X designDocs /path/to/deploymentDir

或者如果您需要先传输它:

hg archive -X designDocs --type zip /path/to/newDeploymentArchive.zip

Ideally you should have these in separate repos as Kyle pointed out, optionally, using sub repositories.

However, with your setup as is something like this might be all you need:

hg archive -X designDocs /path/to/deploymentDir

or if you need to transfer it first:

hg archive -X designDocs --type zip /path/to/newDeploymentArchive.zip
蓝礼 2024-10-03 22:18:39

您可以尝试对这两个子目录使用 子存储库

You might try using subrepositories for the two subdirectories.

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