How to deploy code deployment through Mercurial?

Does anyone have an example process / tutorial on deploying ASP.NET code to a Windows server via mercurial?

I found an example for Linux servers and one using dropbox:

http://stevelosh.com/blog/2009/01/deploying-site-fabric-and-mercurial/
http://blog.wekeroad.com/danger-danger/git-and-dropbox-sitting-in-a-tree

but I'm looking for something more than Windows, and a little less hacky than dropbox.

Greetings

Matt

+4
source share
1 answer

We are considering the exact same deployment scenario that we want to use Mercurial to deploy our sites.

The current process that we are trying to implement will look something like this.

We will have several Mercurial repos. Dev, Staging and Live.

Dev and Staging contain the complete webapp source code. They are hosted internally and we use Teamcity to create them on our dev / staging servers with a simple Robocopy deployment.

However, we do not want to deploy all the uncompiled source to the servers. Thus, the Live repo contains only fully built DLLs (in the bin directory on the website) and the website itself.

We will use Teamcity automatic assembly to update our live version of the site and transfer it to Live repo.

Then, as a manual step, you would need to enter the real live server and pull the latest version from the real repo. At this point, we can either expand the line, or prevent the .hg folder from showing, or expand xcopy / robocopy.

I am in the midst of all this at the moment, so this is just a proof of concept and I am happy to receive comments!

Tim

+1
source

Source: https://habr.com/ru/post/1344331/


All Articles