I have tackled this problem through using psexec (sysinternals.com)
executing remote commands to go through the steps of putting the
application into maintenance mode, removing the old files, laying the
new files down, warming up the site, then bringing the site back online.
It could be on in nant using the exec task but I have taken this out
side of the actual build processes, as I deploy the same build to
multiple places on different schedules.  This is really required when
working with a webfarm.  It is a very ugly solution when you are dealing
with more then 1 or 2 different sites.

In the mean time I have started working on a software solution to
replace the many batch files I have put together for all of our sites.
We simply have to many sites that we support to make batch files a clean
solution.  My project is about 80% of the way to a beta version but I
can post back later if you would like to hear more once I have something
that I can actually show.  

In the mean time the psexec utility does require the standard windows
ports for authentication to be open so this is not a great solution to
run on a server that you do not have a protected backend network access
to.  So this may not work for your situation.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Clemmons
Sent: Friday, November 04, 2005 8:21 AM
To: [email protected]
Subject: [Nant-users] deploying asp.net applications

Greetings!

I am using Nant to build, zip, and FTP my asp.net application to a
remote 
site where I then have to manually (oh the horror!) archive the old
version 
and unzip the new package into the existing virtual directories. Now I
wish 
to automate these last steps so that deployment is fully automated. I
know 
that I could simply FTP over the existing application, but I hate to
have 
obsolete files hanging around. I also am thinking about writing a 
file-watching service to do this final step (I have access to the
server), 
but I would rather do it all with Nant if possible.

Is there a common way of doing this with Nant?

Thanks,

Scott




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to