Your Sitefinity Cloud website is configured in a Continuous Delivery (CD) pipeline setup. This way, code changes are deployed to Staging and then to Production. In such setup, the code base does not change, but your website configurations may need to vary to reflect different environment settings, such as connection strings and SMTP settings.
To utilize web.config transformations, Sitefinity Cloud uses the same approach as described in procedure Manage configurations in Continuous delivery.
web.config
When you need to apply different configurations for the different environments, there are two options to do so, depending on the value type of the configuration itself.
When you need to transform configurations that store sensitive information, you can use environment variables. You enter the desired values as key-value pairs in the variable group, designated for the specific environment:
_CUSTOMER_Staging_Variables
_CUSTOMER_Production_Variables
You edit the environmental variables in the Variable groups:
To add a variable, perform the following:
<appSettings>
During deployment pipeline searches the web.config for the input key and replaces its value with the value from the pipeline variable for the specific environment.
web.Production.config
web.Staging.config
RESULT: During deployment Staging and Production transforms will be applied to the web.config.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important