Skip to content

Instantly share code, notes, and snippets.

@JRondeau16
Created November 21, 2017 20:33
Show Gist options
  • Save JRondeau16/eb70cbb7375a884050b3eb3d59bc27f9 to your computer and use it in GitHub Desktop.
Save JRondeau16/eb70cbb7375a884050b3eb3d59bc27f9 to your computer and use it in GitHub Desktop.
Settings.config Sitecore 9
<?xml version="1.0"?>
<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>
<settings>
<!--Local-->
<setting name="[ProjectName].Setting" value="abc123" env:require="Local" />
<setting name="[ProjectName].Setting2" value="xyz321" env:require="Local" />
<!--Develop-->
<setting name="[ProjectName].Setting" value="abc123" env:require="Develop" />
<setting name="[ProjectName].Setting2" value="xyz123" env:require="Develop" />
<!--Beta-->
<setting name="[ProjectName].Setting" value="123abc" env:require="Beta" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting" value="123ABC" env:require="Beta" role:require="ContentManagement" />
<setting name="[ProjectName].Setting2" value="123xyz" env:require="Beta" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting2" value="123XYZ" env:require="Beta" role:require="ContentManagement" />
<!--Live-->
<setting name="[ProjectName].Setting" value="ABC" env:require="Live" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting" value="abc" env:require="Live" role:require="ContentManagement" />
<setting name="[ProjectName].Setting2" value="XYZ" env:require="Live" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting2" value="xyz" env:require="Live" role:require="ContentManagement" />
</settings>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment