Skip to content

Instantly share code, notes, and snippets.

@JRondeau16
Created November 21, 2017 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JRondeau16/558817767c757733ab184aed4ec2188c to your computer and use it in GitHub Desktop.
Save JRondeau16/558817767c757733ab184aed4ec2188c to your computer and use it in GitHub Desktop.
SiteDefinition.config for Sitecore 9
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:env="http://www.sitecore.net/xmlconfig/env/">
<sitecore>
<sites>
<!--Local-->
<site name="[ProjectName]" inherits="website"
rootPath="/sitecore/content/ProjectName"
hostName="*"
targetHostName="ProjectName.local.com"
patch:before="site[@name='website']" />
<!--Develop-->
<site name="[ProjectName]"
set:hostName="ProjectName.develop.company.com"
env:require="Develop" />
<!--Beta-->
<site name="[ProjectName]"
set:hostName="manage.beta.client.com"
env:require="Beta"
role:require="ContentManagement"/>
<site name="[ProjectName]"
set:hostName="beta.client.com"
env:require="Beta"
role:require="ContentDelivery"/>
<!--Live-->
<site name="[ProjectName]"
set:hostName="manage.client.com"
env:require="Live"
role:require="ContentManagement"/>
<site name="[ProjectName]"
set:hostName="client.com"
env:require="Live"
role:require="ContentDelivery"/>
</sites>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment