We've recently upgraded our ASP.NET Website to a Web Application and we're shocked by the sudden leap in difficulty when deploying it. Considering how common a task this must be, I was wondering what plug-ins/software people use to deploy a rapidly evolving, remotely stored, project (ie. a website)?
There must be a better way than just "Publishing" in Visual Studio and then having to manually FTP the files that have changed? Not least because the site goes down when we're uploading our .DLLs.
There are so many fiddly file exceptions that I'd must rather automate the process as much as possible, to prevent accidental uploads.
With our old solution (on our WebSite) we used Dispatch for ASP which totally rocked and made the entire process one click. Unfortunately it's not great for DLLs (as previously mentioned).
So how does your team do it?
Thanks for any advice.
PS – I've read that Visual Studio 2010 is supposed to address these shortcomings in VS2005/08, but until then…
Best Answer
I would strongly recommend using Continuous Integration.
We use a combination of TeamCity for CI, Rake and Albacore for automating the build.
TeamCity will check the code out of your source code repository, then, using Rake, build the application, execute unit tests and even run your database scripts if you so desire. After a successful build you can package your source code in a zip file or copy it to a destination of your choice.
We use Git, although TeamCity works with all source control systems.
Using TeamCity and Rake would be similar to using CruiseControl and NANT, without the XML file editing. Of course, you can use TeamCity with NANT if you prefer.
A short sample pulled from a rakefile.rb which performs the build. IMHO, easier to read and debug than an XML file.
Albacore is suite of Rake tasks specifically build for deploying .NET application.