This is what I was looking for! PowerShell rocks!!
We’re constantly working to standardize how builds get pushed out to our development, UAT, and production servers. The typical ‘order of operations’ includes:
- compile the build
- backup the existing deployment
- copy the new deployment
Pretty simple, but with a few moving parts (git push, TeamCity pulls in, compiles, runs deployment procedures, IIS (hopefully) doesn’t explode).
One step to standardize this has been to add these steps into our psake scripts, but that got tiring (and dangerous when we found a flaw). When in doubt, refactor!
First, get the codez!
Creating a simple deployment tool – DeployTo
The PowerShell file, DeployTo.ps1, should be located in your project, your PATH, or wherever your CI server can find it–I tend to include it in a folder we have that synchronizes to ALL of our build servers automatically via Live Mesh. You could include it with your project…
Ver la entrada original 326 palabras más