开发者

Mercurial HG Archive subdirectory for web deployment

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜