We have a Sitecore system running in containers, and we wanted to add a new publishing target. This is another copy of the WEB database; ours is called “preview”, and it is so that editors can check published content before it goes live.
I followed Sitecore’s documentation about how to do this – and do take note of steps 4 and 5. They’re new, and I missed them to begin with:
- In the App_Data\items\ folder, make a copy of the Web folder.
- Rename the copy of the folder and the .dat file inside it. Use the database name (for example, web_preview) instead of web for the folder name and the file name (so the filename is similar to items.web_preview.dat).
It turns out that’s important – without it you’ll get an exception on startup.
However, after doing that, we still had problems with our preview database; the CM server kept throwing an exception.
Continue reading “New Sitecore Publishing Targets in Containers”