tags:

views:

671

answers:

7

I'm looking for something that can copy (preferably only changed) files from a development machine to a staging machine and finally to a set of production machines.

A "what if" mode would be nice as would the capability to "rollback" the last deployment. Database migrations aren't a necessary feature.

UPDATE: A free/low-cost tool would be great, but cost isn't the only concern. A tool that could actually manage deployment from one environment to the next (dev->staging->production instead of from a development machine to each environment) would also be ideal.

The other big nice-to-have is the ability to only copy changed files - some of our older sites contain hundreds of .asp files.

A: 

We used UnleashIt (unfortunate name I know) which was nicely customizable and allowed you to save profiles for deploying to different servers. It also has a "backup" feature which will backup your production files before deployment so rollback should be pretty easy.

lomaxx
sorry voted down cos it crashes for me on Windows Server 2008. please add comment if you experience otherwise. looks like a great little tool though - i just moved onto the next option...
Simon_Weaver
+1  A: 

You don't specify if you are using Visual Studio .NET, but there are a few built-in tools in Visual Studio 2005 and 2008:

Copy Website tool -- basically a visual synchronization tool, it highlights files and lets you copy from one to the other. Manual, built into Visual Studio.

aspnet_compiler.exe -- lets you precompile websites.

Of course you can create a web deployment package and deploy as an MSI as well.

I have used a combination of Cruise Control.NET, nant and MSBuild to compile, and swap out configuration files for specific environments and copy the files to a build output directory. Then we had another nant script to do the file copying (and run database scripts if necessary).

For a rollback, we would save all prior deployments, so theoretically rolling back just involved redeploying the last working build (and restoring the database).

Guy Starbuck
+2  A: 

@Sean Carpenter can you tell us a little more about your environment? Should the solution be free? simple?

I find robocopy to be pretty slick for this sort of thing. Wrap in up in a batch file and you are good to go. It's a glorified xcopy, but deploying my website isn't really hard. Just copy out the files.

As far as rollbacks... You are using source control right? Just pull the old source out of there. Or, in your batch file, ALSO copy the deployment to another folder called website yyyy.mm.dd so you have a lovely folder ready to go in an emergency.

look at the for command for details on how to get the parts of the date.

robocopy.exe
for /?

Yeah, it's a total "hack" but it moves the files nicely.

DrFloyd5
+2  A: 
splattne
pretty cool. up and running in 2 minutes. just a little confusing that for FTP transfer you have to click advanced, configure the settings and then click the directory icon next to 'destination' to connect
Simon_Weaver
A: 

I've given up trying to find a good free product that works. I then found Microsoft's Sync Toy 2.0 which while lacking in options works well.

BUT I need to deploy to a remote server.

Since I connect with terminal services I realized I can select my local hard drive when I connect and then in explorer on the remote server i can open \\tsclient\S\MyWebsite on the remote server.

I then use synctoy with that path and synchronize it with my server. Seems to work pretty well and fast so far...

Simon_Weaver
A: 

Maybe rsync plus some custom scripts will do the trick.

projectshave
Not sure what would be required to run rsync on Windows.
Sean Carpenter
A: 

Try repliweb. It handles full rollback to previous versions of files. I've used it whilst working for a client who demanded its use and I;ve become a big fan of it, partiularily:

  • Rollback to previous versions of code
  • Authentication and rules for different user roles
  • Deploy to multiple environments
  • Full reporting to the user via email / logs statiing what has changed, what the current version is etc.
januszstabik