Skip to content

Commit eee0408

Browse files
authored
Merge pull request #7346 from andersreus/main
A few pointers to config transforms, more specifically setting up rewrites.
2 parents 621ee78 + 8c274de commit eee0408

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

umbraco-cloud/build-and-customize-your-solution/handle-deployments-and-environments/umbraco-cicd/troubleshooting.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The reason for this is that the KUDU deploy process fails. This process takes th
1010

1111
To resolve this issue, remove the `RestorePackagesWithLockFile` to allow the deployments to go through as expected.
1212

13-
## cloud-sync
13+
## Cloud Sync
1414

1515
### The projects left-most mainline environment has changed
1616

@@ -76,7 +76,14 @@ Your pipeline should now be functioning as expected.
7676

7777
For GitHub, see the [Skip cloud-sync in GitHub](troubleshooting.md#skip-cloud-sync-in-github) section.
7878

79-
With a few clicks you can manually trigger a pipeline to run without the cloud-sync:
79+
Navigate to your `azure-release-pipeline.yaml` and comment out these two lines:
80+
81+
```sh
82+
dependsOn: cloudSyncStage
83+
condition: in(dependencies.cloudSyncStage.result, 'Succeeded', 'Skipped')
84+
```
85+
86+
Trigger a code deployment and ensure that you uncheck the "Umbraco Cloud Sync" stage as mentioned below.
8087

8188
1. Ensure that your Azure DevOps repository is up to date with any changes in your Umbraco Cloud environment.
8289
2. Find the pipeline in Azure DevOps.

umbraco-cloud/build-and-customize-your-solution/set-up-your-project/project-settings/config-transforms.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ The `{environment}` part needs to be replaced with the target environment, for w
3434

3535
Create this file in your local project clone to ensure it's added to the repository.
3636

37+
{% hint style="info" %} If you don't have a web.config you will need to create one locally as well. {% endhint %}
38+
3739
When the file is deployed to the Live environment, the transforms will be applied to the `Web.config` file in the `Root` of your project. In the case that you have mutliple mainline environments, the `Web.Production.config` will **only** transform the `Web.config` on the Live environment.
3840

3941
For each deployment, the Umbraco Cloud engine searches for all of the `.{environment}.config` files in your site and apply the transforms.
@@ -93,6 +95,8 @@ The snippet requires a `web.config` file with a matching structure; otherwise, t
9395

9496
This config transform will add a `<rule>` to `<system.webServer><rewrite><rules>`. The `xdt:Transform` attribute is used to tell the system what to transform. In this case, the value is `Insert`, which means it will add the section if it's not already in the config file.
9597

98+
If you don't have the `<rewrite>` and `<rules>` section in your `web.config` file, you can add the attribute `xdt:Transform="InsertIfMissing"` to those two sections in the transform file. This ensures they are applied to the `web.config`.
99+
96100
## appsettings.json transforms
97101

98102
On Umbraco Cloud, projects come with an **appsettings.json** file for each of your different environments.

0 commit comments

Comments
 (0)