开发者

Mercurial HG Archive subdirectory for web deployment

开发者 https://www.devze.com 2023-01-19 10:43 出处:网络
I\'ve got a Mercurial repository that contains a subdirectory for design files and a s开发者_如何转开发ub directory for code files.

I've got a Mercurial repository that contains a subdirectory for design files and a s开发者_如何转开发ub 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?


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


You might try using subrepositories for the two subdirectories.

0

精彩评论

暂无评论...
验证码 换一张
取 消