Deploy an ASP.NET application on a remote server

I am looking for a solution to deploy an ASP.NET application from SVN on one server to another remote web server. FTP is prohibited. Other tasks than copying files must be completed. create a virtual directory.

What tools would you use? MSBuild or NAnt can be installed on the remote server, but how to safely copy files from the SVN server to the web server? Maybe SSH? Are there any alternatives? Is it possible to have atom operation when copying a file? I do not think continuous integration servers would help me.

Both SVNs and web servers are built using Windows 2k3, IIS 6.0, .NET 2.0.

Edit

deployment should be done automatically using binding to the SVN message.

+4
source share
2 answers

I am using psexec from sysinternals ( http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx ) to remotely invoke svn commands in my hook script. Basically, whenever someone checks something in the production branch, he calls the svn update on the remote server and the updates get pulled into production.

This may or may not work, depending on which ports are open between the two servers.

+4
source

But maybe a continuous integration server can help? Here are some ideas:

For example, I use CruiseControl.NET to automatically create our solutions after each commit. Perhaps you can use this on your web server to retrieve the latest version from the SVN repository after each commit.

If you want access to the SVN repository to be safe, perhaps you could use the VisualSVN server on the repository server, and then access the repository using https.

(a lot maybe, but maybe ;-) there is something that can help you)

0
source

All Articles