November Happy Hour will be moved to Thursday December 5th.

EPiServer Automated Deployments and site initialisation

Vote:
 

Hi,

We have just started implementing automated deployments for our EPiServer sites, but one thing we would like to do as part of the deployment is to initialise a default site as part of the deployment.

What is the recommended way to do this?

The import and export functionality does not really fit our needs as we will need to include permissions, etc nto just the content types, and the export package is not really editable by developers for simple changes.

Thanks,

#184984
Nov 08, 2017 0:57
Vote:
 

I believe the best way to handle content initialization is by writing a custom InitializationModule. There you can use things like IContentRepository and ISiteDefinitionRepository to do the majority of your work.

#185219
Nov 13, 2017 7:39
Vote:
 

Yeah, that gets messy when you try to handle pages that contians blocks that contains other blocks with links to pages, etc and you need to initialize a large sites in a generic way (i.e. easy to review and modify).

I was hoping someone else had come up with a better solution that handled the page-> block -> block releationships so we didn't have to write the code.

#185220
Nov 13, 2017 7:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.