1

We have a set up with CM, CD1, CD2. Both CDs have their own 'web' database (cd1 and cd2).

We are currently using DevOps to run a powershell script that deploys to each machine. We would like to include a line in the CD deployments to publish to their respective db.

What is the best way to do this? (9.2)

1
  • 2
    Do you have an example script you can add to your question? – Michael West Mar 26 at 12:57
0

Follow the logical idea Unicorn has:

  • Create a dedicated handler/page to trigger publish (similar to unicorn.aspx)
  • Place the trigger publish logic inside to start publishing to given targets
  • Use secret token concept that must be embedded into the request to trigger publish

Implementing it as a legal page would force Sitecore to start, therefore allowing you to execute publishing operation.

2
  • How would I call that from my script? – Tony Kiernan Mar 29 at 9:18
  • Plain get request during build, like mysite.com/autopublish.aspx?token=xxx – Nikolay Mitikov Mar 29 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.