Skip to content

Commit 1e7a19a

Browse files
Sofie Toft Kristensengitbook-bot
authored andcommitted
GITBOOK-4: Added information about Configuration files
1 parent 02e3405 commit 1e7a19a

File tree

2 files changed

+30
-37
lines changed

2 files changed

+30
-37
lines changed
Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
description: Environments are a core part of your Umbraco Cloud project. This is where you develop, write, build, and eventually publish your website.
2+
description: >-
3+
Environments are a core part of your Umbraco Cloud project. This is where you
4+
develop, write, build, and eventually publish your website.
35
---
46

57
# Environments
68

79
An Umbraco Cloud environment is defined as a _workspace_ and is also a Git repository. When you have more than one environments on your project, these environments act as branches of the main repository.
810

9-
Umbraco Cloud uses a deployment model that relies on Git and other core technology. This gives you the option to move both content and structure files from one environment to another. Learn more in the [Deployment section](../deployment/README.md).
11+
Umbraco Cloud uses a deployment model that relies on Git and other core technology. This gives you the option to move both content and structure files from one environment to another. Learn more in the [Deployment section](../deployment/).
1012

1113
You can have multiple environments in your Umbraco Cloud project, with two types available: **Mainline Environments** and **Flexible Environments**.
1214

@@ -16,7 +18,7 @@ The image below shows a Cloud setup including two mainline environments and one
1618

1719
## Mainline Environments
1820

19-
A mainline environment serves as the root deployment pipeline, responsible for managing code and content flow. Each mainline environment is a part of the [left-to-right deployment workflow](../deployment/README.md).
21+
A mainline environment serves as the root deployment pipeline, responsible for managing code and content flow. Each mainline environment is a part of the [left-to-right deployment workflow](../deployment/).
2022

2123
The **left-most mainline environment** is where you can connect to your local machine using Git. This environment is often called the Development environment.
2224

@@ -36,63 +38,55 @@ Learn more about how this works in the [Flexible Environments](flexible-environm
3638

3739
## Plans and availability
3840

39-
<table>
40-
<thead>
41-
<tr>
42-
<th width="117">Plan</th>
43-
<th width="116" data-type="number">Mainline Environments</th>
44-
<th width="167" data-type="checkbox">Flexible Environments</th>
45-
</tr>
46-
</thead>
47-
<tbody>
48-
<tr>
49-
<td>Starter</td>
50-
<td>2</td>
51-
<td>false</td>
52-
</tr>
53-
<tr>
54-
<td>Standard</td>
55-
<td>3</td>
56-
<td>true</td>
57-
</tr>
58-
<tr>
59-
<td>Professional</td>
60-
<td>4</td>
61-
<td>true</td>
62-
</tr>
63-
</tbody>
64-
</table>
41+
<table><thead><tr><th width="117">Plan</th><th width="116" data-type="number">Mainline Environments</th><th width="167" data-type="checkbox">Flexible Environments</th></tr></thead><tbody><tr><td>Starter</td><td>2</td><td>false</td></tr><tr><td>Standard</td><td>3</td><td>true</td></tr><tr><td>Professional</td><td>4</td><td>true</td></tr></tbody></table>
6542

66-
![Umbraco Cloud Environment Technical Overview](images/environment-tech-overview.png)
43+
## Environment Components
6744

68-
## Site and Git Repository
45+
### Site and Git Repository
6946

7047
Each environment on Umbraco Cloud has both a Git repository and a folder with your actual live site. The Git repository is what you clone down when you work with the project locally, and it's where your changes are pushed to.
7148

7249
The live site (`/site/wwwroot/`) contains the files used to show your website to the world. When pushing changes from your local machine, they are pushed to the Git repository (`/site/repository/`). When this finishes successfully, the changes are copied into the live site.
7350

74-
## Team Members
51+
### Configuration files
52+
53+
An `appSettings.json` file holds all configurations for the Umbraco CMS project within the Cloud project. This file follows ASP.NET standards as they are tied to the Umbraco CMS installation.
54+
55+
It is possible to set up specific configurations for each environment:
56+
57+
1. Clone the `appSettings.json` file.
58+
2. Rename it by adding the environment name: `appSettings.{EnvironmentAlias}.json`.&#x20;
59+
60+
The `EnvironmentAlias` is fetched from the Environment variable named `DOTNET_ENVIRONMENT`. This variable can be found in the Environment Variables section of Kudu on the environment. You can read more about ASP.NET Configuration in the official [Microsoft documentation](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-9.0).
61+
62+
{% hint style="info" %}
63+
Make sure that when you start up the Umbraco Application, you load the correct JSON file as per the ASP.NET Configuration in the official [Microsoft documentation](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-9.0).
64+
{% endhint %}
65+
66+
### Team Members
7567

7668
All the team members you add through the Umbraco Cloud Portal will also be added as backoffice users in your environments. You can also add users directly in the backoffice of your Umbraco Cloud environments. If you do this, the user will not have the option to deploy changes between the environments.
7769

7870
Read more about this and team member roles in the [Team Members](../set-up/project-settings/team-members/) article.
7971

80-
## SQL Database
72+
### SQL Database
8173

8274
Each of your Umbraco Cloud environments has its own SQL Azure database. You have full access to the databases, and you can create custom tables as you'd expect from any other hosting provider.
8375

8476
Learn more about how to connect to your Umbraco Cloud databases in the [Database](../databases/) article.
8577

86-
## Power Tools (Kudu)
78+
### Power Tools (Kudu)
8779

8880
Aside from viewing the files when cloning down the project to your local machine, you also have access to Kudu (Power Tools).
8981

9082
Kudu is a dashboard that allows you to browse, view, and edit all the files in your environments. We recommend using the tool _only_ when you are following one of our guides.
9183

9284
In the [Power Tools](../set-up/power-tools/) article, you can read more about how to access the dashboard, and how we recommend using it.
9385

94-
## Environment History
86+
### Environment History
9587

9688
Each of your Umbraco Cloud environments has a Git repository and therefore also a Git history. We've made a simplified view of this Git history in the Cloud Portal. The **History** is found via the action menu available on each environment in the environments overview on your project.
9789

9890
In the History view, you'll be able to see what file changes have been made in the environment.
91+
92+
![Umbraco Cloud Environment Technical Overview](images/environment-tech-overview.png)

umbraco-cloud/getting-started/flexible-environments.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
description: >-
33
Use flexible environments to create a separate workflow along side the
44
left-to-right deployment approach in Umbraco Cloud.
5-
hidden: true
65
---
76

87
# Flexible Environments (beta)
@@ -35,7 +34,7 @@ This feature enables:
3534
* Once a feature is complete, it can be merged back into the mainline environment and become part of regular deployment flow.
3635
* When changes are made to the mainline environment, they must be pulled into the flexible environment before changes can be pushed.
3736

38-
Learn more about the deployment process in the [Deployments](../deployment/README.md) section.
37+
Learn more about the deployment process in the [Deployments](../deployment/) section.
3938

4039
## Project Prerequisites
4140

0 commit comments

Comments
 (0)