My group uses NAnt to deploy our ASP.NET web application to our three environments, dev, int, and prod.  After our build script builds the necessary executables, we have targets that copy the appropriate files out to the web servers.  In fact we even have targets that restore and upgrade our databases as well.
 
What did the Microsoft guy say that prevented you from doing this?  What did you realize that didn't make it so easy?
 
Creating targets in the build script to do all the copying and deleting is laborious at first, but now that we have it done, deployment is a breeze.  Things are truly a one click build.
 
The only issues that we have seen is that at times dlls can be locked which prevents them from being copied onto the server.  We either find the executable that is running and shut it down first (in the build script of course) or just try the build again.  Whatever was locking the file isn't anymore, the second time.  Not the most elegant solution, but it works.
 
Jason


From: Eric Fetzer [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 12:12 PM
To: Nant Users
Subject: [Nant-users] Deployment

Any advice on deployment?  I have NAnt doing builds for me, compiling about 25 projects.  There are 2 separate boxes being deployed to.  One side is the web side and the other batch.  So I have a master build file calling 2 other build files and then the Master does a copy to a staging area.  Originally I was thinking I could just take all of the resulting files (.exe, .dll, .as?x...) to the appropriate directory on the system to be run on.  Well, I realized that it's not that easy (go figure).  The Microsoft guy is telling me that it would be best to maintain setup projects created using Visual Studio.  I was hoping to automate the deployment so that it wouldn't be necessary to always keep these sync'd up with their corresponding project files, the master solution...  Seems like a lot of redundancy going on and possibilities of losing synchronicity.  I would appreciate any tidbits of wisdom you could give.  Thanks - Eric


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Reply via email to