Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

One click deployment?

MS been raving about xcopy deployment with .NET. But how do you deploy smart to the target machine? I mean: copy only new and changed files, delete removed files. It would also be nice to have the transfer compressed and large files patched automatically. I have checked FinalBuilder but they seem to rely on ftp and ftp is not very smart. Maybe someone has a hint on how to use a folder being sent in the background to another machine. And all these goodies should be executed in a script once a day. Somebody, please open my eyes!

Christer Nilsson
Friday, March 14, 2003

http://www.devx.com/dotnet/Article/10045/0/page/1
http://msdn.microsoft.com/msdnmag/issues/03/02/BITS/default.aspx
http://asp01sea.activate.net/microsoft/teched2002/publish/DEV350_files/default.htm#profile=1

Just me (Sir to you)
Friday, March 14, 2003

The links given by "Just me (Sir to you)" gives information about how to autoupgrade an .NET app. I forgot to mention that my problem concerns ASP.NET. Here autoupgrade is not useful. Actually my problem could be restated: How do I copy a bunch of files to another computer from a simple script?

Christer Nilsson
Friday, March 14, 2003

Sorry, misunderstood.
Maybe you want something along the lines of
http://www.catalyst.com/products/activepatch/index.html

Just me (Sir to you)
Friday, March 14, 2003

I was hoping MS Visual Studio .NET had a button sending the necessary files to the web server. And also a Command Line Interface.  XCopy deployment seems to mean, between two directories on the same machine. But I don't like the idea of developing on a server.

Christer Nilsson
Friday, March 14, 2003

Actually, I think you might be missing the point.

XCOPY deployment means that you can simply takes the files to the server or client, copy them, and run. No installers, no registration, no registry tweaks, etc.

What you're describing is either the opposite of (or orthogonal to) XCOPY deployment: namely, a complex installation and upgrade routine that tracks file changes. That said, just about any reasonable full featured FTP program can do what you want to have done.

Brad (dotnetguy.techieswithcats.com)
Friday, March 14, 2003

As far as I know, all ftp programs copies one directory at a time, even if the files are copied already. If I automatically transfer 100 files every midnight, and only one or two has changed, it is a huge waste of bandwidth. And if I zip the files, I have to log in on the remote machine and unzip. It would be nice to find a MS.NET utility keeping track of which ASP.NET files that need to be transferred, and then do this as quick as possible.

Christer Nilsson
Sunday, March 16, 2003

I've used both WS_FTP and FileZilla, and both will do conditional uploads/downloads based on dates and file sizes. Of course, FTP isn't really standardized to give GMT dates, so there are timezone-related issues, but all in all, it works for me.

Brad (dotnetguy.techieswithcats.com)
Sunday, March 16, 2003

Thank you Brad, WS_FTP seems to fit me perfect. It's got the one way sync and CLI.

Christer Nilsson
Sunday, March 16, 2003

In the Solution Explorer, highlight your project and click on the 4th button over, the one with two windows.  That will allow you to copy files over to a webserver via file sharing or front page extensions. 

I can't say anything about front page extensions, but file sharing gives you the option to copy over everything or individual files.

Jeff Lewis
Wednesday, March 26, 2003

Can I do this to any server on internet, or must it be accessible on my own network?

Christer Nilsson
Thursday, March 27, 2003

*  Recent Topics

*  Fog Creek Home