Oct 20, 2012 at 10:22 AM
Edited Oct 20, 2012 at 10:24 AM
I am trying to deploy an Orchard solution using TeamCity. I'm using Orchard 1.5.1 source code and the latest TeamCity version. My current deployment configuration involves building the Orchard.proj with the "compile;package" targets and then
copying the files with xcopy using build\MsDeploy\Orchard as a working directory
xcopy *.* C:\inetpub\wwwroot\OrchardPortal /E /H /Y /O
I also have another step that runs some powershell commands to update the settings file.
Rename-item Settings.txt -NewName Settings.txt.OLD
xcopy Settings.txt C:\inetpub\wwwroot\OrchardPortal\App_Data\Sites\Default /E /H /Y /O
Rename-Item Settings.txt.QA -NewName Settings.txt
Rename-Item Settings.txt -NewName Settings.txt.QA
Rename-item Settings.txt.OLD -NewName Settings.txt
The problem that I have is that the media items don't get copied. I could use another xcopy command but I already feel that this deployment process isn't natural. Can anyone provide a better deployment setup? I've noticed that the source code is compiled
using TeamCity but the configuration isn't public.