Skip to content

Instantly share code, notes, and snippets.

@greystate
Created August 6, 2019 15:34
Show Gist options
  • Save greystate/c96f8e5e10448c3dc3914db32d5a1a3e to your computer and use it in GitHub Desktop.
Save greystate/c96f8e5e10448c3dc3914db32d5a1a3e to your computer and use it in GitHub Desktop.
Checking Umbraco Cloud environment
<?xml version="1.0" encoding="UTF-8"?>
<SiteSettings environment="local">
<Settings for="development">
<!-- ... -->
</Settings>
<Settings for="live">
<!-- ... -->
</Settings>
</SiteSettings>
<?xml version="1.0" encoding="UTF-8"?>
<SiteSettings environment="development"
xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"
xdt:Transform="SetAttributes(environment)">
<!-- Set the `environment` attribute to this one's value -->
</SiteSettings>
<?xml version="1.0" encoding="UTF-8"?>
<SiteSettings environment="live"
xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"
xdt:Transform="SetAttributes(environment)">
<!-- Set the `environment` attribute to this one's value -->
</SiteSettings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment