This process goes through all the following steps:
- Subversion Checkin / Checkout / Export
- ASP.NET 4 site precompile.
- If compile fails, abort script
- Map to netowork drive on production server.
- Zip compiled application with unique name onto production server.
- Copy a version to the network for archival purposes
- Notify the production server of new app.
- Production server unzips new app, deletes old, replaces old with new via file move (less than a second of "downtime")
- Send noficiation tweet to @cledwyn that the process has happened.
This requires having a "Scheduled Task" on the production server.
- Here is the local machine code.
- Here is the server side script.
Tools that you will need to get this working.
- Yes this is for a windows environment. All scripts could be adapted for Mac/Linux....
- Visual Studio 2010 is helpful
- Tweepy: A great python command line tool for posting to twitter.
- Tortoise SVN. Invaluable subversion tool.
- 7za: Command Line version of 7Zip.