Skip to content

Commit ef46cdb

Browse files
author
Nikolaj
committed
Merge branch 'main' into v9/common-pitfalls
2 parents 3369746 + 189481a commit ef46cdb

File tree

717 files changed

+24222
-19244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

717 files changed

+24222
-19244
lines changed
+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
versionFrom: 7.0.0
3+
---
4+
5+
# The Licensing Model
6+
7+
Umbraco Forms, Umbraco Deploy and Umbraco Courier are commercial products.
8+
9+
For Umbraco Forms you will have a 14-day free trial to try out the product. After your trial expires, you'll need to have a **valid license** in order to keep using the product on your site.
10+
11+
Umbraco Courier and Umbraco Deploy don't come with a 14-day free trial, which means you will need a **valid license** in order to use the products. You will be able to test both Deploy and Courier on a local setup without a license.
12+
13+
## How does it work?
14+
15+
Licenses for our products are sold per domain and will also work on all subdomains. With every license you will also be able to configure two development / testing domains.
16+
17+
### Example
18+
19+
Let's say that you have a license configured for your domain, `mysite.com`, and you've configured two development domains, `devdomain.com` and `devdomain2.com`.
20+
21+
The license will cover the following domains:
22+
23+
- `localhost`
24+
- `*.mysite.com`
25+
- `www.mysite.com`
26+
- `mysite.com.local`
27+
- `devdomain.com`
28+
- `www.devdomain.com`
29+
- `devdomain2.com`
30+
- `www.devdomain2.com`
31+
32+
:::note
33+
That you can have only 1 license per Umbraco installation.
34+
:::
35+
36+
## What does a license cover?
37+
38+
Even though we use the same licensing model for Umbraco Forms and Umbraco Courier, there are a few differences as to what the licenses cover.
39+
40+
### Umbraco Forms
41+
42+
- A single license covers the installation of Umbraco Forms in 1 production domain, as well as in 2 development domains
43+
- The production domain includes **all subdomains** (e.g. `*.mysite.com`), as well as the `.local` extension (e.g. `mysite.com.local`)
44+
- The development domains works with or without the `www` subdomain
45+
- The license allows for an unlimited number of forms
46+
- The license also includes `localhost` as a valid domain
47+
48+
In the case you run multiple sites within one Umbraco installation, e.g. you have multiple domains pointing at the same installation, you have the option to purchase and add **additional domains** to your license.
49+
50+
Additional domains can be purchased from your account on [Umbraco.com](https://umbraco.com) for 129 €. Each additional domain includes 1 live domain and 2 development / testing domains.
51+
52+
:::note
53+
That this is an add-on domain for existing licenses. Refunds will not be given for this product.
54+
:::
55+
56+
### Umbraco Deploy
57+
58+
Deploy license:
59+
60+
A single licence covers one Umbraco solution, including all domains hosted by the solution,
61+
all production environments (if load-balancing) and all non-production environments.
62+
63+
To clarify on the above:
64+
65+
- You only need one license when you have a solution covering multiple domains- e.g. www.mysite.com and www.mysite.dk - load balanced in production over multiple servers running from the same database, managed from the same back-office instance, and with any number of non-production environments (staging, qa, etc.)
66+
67+
- You need two licences If you have a web presence that consists of two separate websites hosted on different domains or sub-domains - e.g. www.mysite.com and shop.mysite.com - with each of these managed as a separate Umbraco installation using their own database and back-office in production.
68+
69+
:::note
70+
The license for Umbraco Deploy comes with a recurring yearly fee. Learn more about this and pricing on [Umbraco.com](https://umbraco.com/products/umbraco-deploy/).
71+
:::
72+
73+
### Umbraco Courier
74+
75+
- A single license covers the installation and use of Umbraco Courier in 1 production domain, as well as 2 development domains
76+
- The production domain includes all subdomains (e.g. `*.domain.tld`), as well as the `.local` extension (e.g. `domain.tld.local`)
77+
- The development domains works with or without the `www` subdomain
78+
- The license also includes `localhost` as a valid domain
79+
80+
For the Umbraco Courier license you do not need to purchase additional domains if you are running multiple sites within the same Umbraco installation.
81+
82+
## Configuring and installing your license
83+
84+
You can purchase licenses for our products on our website:
85+
86+
- [Umbraco Forms licenses](https://umbraco.com/apps/umbraco-forms/)
87+
- [Umbraco Courier licenses](https://umbraco.com/apps/umbraco-courier/)
88+
89+
When you've bought a license you need to configure it with your domains.
90+
91+
You can either configure your license right away, or you can do it later by vising your account on Umbraco.com.
92+
93+
![Configuring Umbraco Forms license](images/configure-forms-license.gif)
94+
95+
## Installing your license
96+
97+
Once you've configured your license with the correct domains, you are ready to install the license on your Umbraco installation.
98+
99+
1. Download your license from your Umbraco.com account - this will give you a `.lic` file
100+
2. Place the file in the `/bin` directory in your Umbraco installation
101+
102+
The `.lic` file must be placed in the `/bin` directory in order to be registered by Umbraco Deploy, Umbraco Courier or Umbraco Forms. If the file isn't placed correctly, the application will automatically switch to trial mode.
103+
104+
![Installing Umbraco Forms license](images/install-forms-license.gif)
105+
106+
## Alternative license location
107+
108+
If you can't include the license file in the `/bin` directory for any reason it is possible to configure an alternative location for the file.
109+
110+
It can be configured in the Umbraco installation's `Web.config` file by adding the following AppSetting, where `value="~/Licenses/"` contains the path of your custom license directory, relative to the root of your Umbraco Installation.
111+
112+
:::warning
113+
This will also change the location for other Umbraco related licenses in this project.
114+
:::
115+
116+
```xml
117+
<appSettings>
118+
<add key="UmbracoLicensesDirectory" value="~/Licenses/" />
119+
...
120+
</appSettings>
121+
```

Add-ons/The-Licensing-model/index.md

+18-24
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
2-
versionFrom: 7.0.0
2+
versionFrom: 9.0.0
33
---
44

55
# The Licensing Model
66

7-
Umbraco Forms, Umbraco Deploy and Umbraco Courier are commercial products.
7+
Umbraco Forms and Umbraco Deploy are commercial products.
88

99
For Umbraco Forms you will have a 14-day free trial to try out the product. After your trial expires, you'll need to have a **valid license** in order to keep using the product on your site.
1010

11-
Umbraco Courier and Umbraco Deploy don't come with a 14-day free trial, which means you will need a **valid license** in order to use the products. You will be able to test both Deploy and Courier on a local setup without a license.
11+
Umbraco Deploy doesn't come with a 14-day free trial, which means you will need a **valid license** in order to use the products.
1212

1313
## How does it work?
1414

1515
Licenses for our products are sold per domain and will also work on all subdomains. With every license you will also be able to configure two development / testing domains.
1616

1717
### Example
1818

19-
let's say that you have a license configured for your domain, `mysite.com`, and you've configured two development domains, `devdomain.com` and `devdomain2.com`.
19+
Let's say that you have a license configured for your domain, `mysite.com`, and you've configured two development domains, `devdomain.com` and `devdomain2.com`.
2020

2121
The license will cover the following domains:
2222

@@ -35,7 +35,7 @@ That you can have only 1 license per Umbraco installation.
3535

3636
## What does a license cover?
3737

38-
Even though we use the same licensing model for Umbraco Forms and Umbraco Courier, there are a few differences as to what the licenses cover.
38+
Even though we use the same licensing model for Umbraco Forms and Umbraco Deploy, there are a few differences as to what the licenses cover.
3939

4040
### Umbraco Forms
4141

@@ -70,21 +70,12 @@ To clarify on the above:
7070
The license for Umbraco Deploy comes with a recurring yearly fee. Learn more about this and pricing on [Umbraco.com](https://umbraco.com/products/umbraco-deploy/).
7171
:::
7272

73-
### Umbraco Courier
74-
75-
- A single license covers the installation and use of Umbraco Courier in 1 production domain, as well as 2 development domains
76-
- The production domain includes all subdomains (e.g. `*.domain.tld`), as well as the `.local` extension (e.g. `domain.tld.local`)
77-
- The development domains works with or without the `www` subdomain
78-
- The license also includes `localhost` as a valid domain
79-
80-
For the Umbraco Courier license you do not need to purchase additional domains if you are running multiple sites within the same Umbraco installation.
81-
8273
## Configuring and installing your license
8374

8475
You can purchase licenses for our products on our website:
8576

8677
- [Umbraco Forms licenses](https://umbraco.com/apps/umbraco-forms/)
87-
- [Umbraco Courier licenses](https://umbraco.com/apps/umbraco-courier/)
78+
- [Umbraco Deploy licenses](https://umbraco.com/products/umbraco-deploy/)
8879

8980
When you've bought a license you need to configure it with your domains.
9081

@@ -97,25 +88,28 @@ You can either configure your license right away, or you can do it later by visi
9788
Once you've configured your license with the correct domains, you are ready to install the license on your Umbraco installation.
9889

9990
1. Download your license from your Umbraco.com account - this will give you a `.lic` file
100-
2. Place the file in the `/bin` directory in your Umbraco installation
91+
2. Place the file in the `/umbraco/Licenses` directory in your Umbraco installation
10192

102-
The `.lic` file must be placed in the `/bin` directory in order to be registered by Umbraco Deploy, Umbraco Courier or Umbraco Forms. If the file isn't placed correctly, the application will automatically switch to trial mode.
93+
The `.lic` file must be placed in the `/umbraco/Licenses` directory in order to be registered by Umbraco Deploy or Umbraco Forms. If the file isn't placed correctly, the application will automatically switch to trial mode.
10394

10495
![Installing Umbraco Forms license](images/install-forms-license.gif)
10596

10697
## Alternative license location
10798

108-
If you can't include the license file in the `/bin` directory for any reason it is possible to configure an alternative location for the file.
99+
If you can't include the license file in the `/umbraco/Licenses` directory for any reason it is possible to configure an alternative location for the file.
109100

110-
It can be configured in the Umbraco installation's `Web.config` file by adding the following AppSetting, where `value="~/Licenses/"` contains the path of your custom license directory, relative to the root of your Umbraco Installation.
101+
It can be configured in the Umbraco installation's `appSettings.json` file by adding the following AppSetting, where the value contains the path of your custom license directory, relative to the root of your Umbraco Installation.
111102

112103
:::warning
113104
This will also change the location for other Umbraco related licenses in this project.
114105
:::
115106

116-
```xml
117-
<appSettings>
118-
<add key="UmbracoLicensesDirectory" value="~/Licenses/" />
119-
...
120-
</appSettings>
107+
```json
108+
{
109+
"Umbraco": {
110+
"Licensing": {
111+
"Directory": "~/custom-licenses-folder/"
112+
}
113+
}
114+
}
121115
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
---
2+
versionFrom: 8.0.0
3+
meta.Title: "Umbraco Deploy settings"
4+
meta.Description: "Various settings for Umbraco Deploy"
5+
---
6+
7+
# Configurations for Deployments
8+
9+
The UmbracoDeploy.Settings.config file is empty by default, but there are some optional settings you can set in the file to ignore certain types of file, increase timeout limits, etc.
10+
11+
## ExcludedEntityTypes
12+
13+
This setting allows you to exclude a certain type of entity from being deployed. This is **not** recommended to set, but sometimes there may be issues with the way a custom media fileprovider works with your site and you will need to set it for media files. Here is an example:
14+
15+
```xml
16+
<?xml version="1.0" encoding="utf-8"?>
17+
<settings xmlns="urn:umbracodeploy-settings">
18+
<excludedEntityTypes>
19+
<add type="media-file" />
20+
</excludedEntityTypes>
21+
</settings>
22+
```
23+
24+
## RelationTypes
25+
26+
This setting allows you to manage how relations are deployed between environments. You will need to specify an alias and a mode for each relationtype. The mode can be either:
27+
28+
- `Exclude` - This causes the relation to be excluded and not transferred on deployments.
29+
- `Weak` - This causes the relation to be deployed if both content items are found on the target environment.
30+
- `Strong` - This requires the content item that is related is set as a dependency, so if anything is added as a relation it would also add it as a dependency.
31+
32+
```xml
33+
<?xml version="1.0" encoding="utf-8"?>
34+
<settings xmlns="urn:umbracodeploy-settings">
35+
<relationTypes>
36+
<relationType alias="relateParentDocumentOnDelete" mode="Weak" />
37+
<relationType alias="relateShopItemOnCreate" mode="Exclude" />
38+
</relationTypes>
39+
</settings>
40+
```
41+
42+
## ValueConnectors
43+
44+
This setting is used by package creators who wants their custom editors to work with Deploy. The packages should be creating this setting automatically. There is a community driven package that has value connectors for Deploy called [Deploy Contrib](https://github.com/umbraco/Umbraco.Deploy.Contrib).
45+
46+
Here is an example of how the setting can look:
47+
48+
```xml
49+
<?xml version="1.0" encoding="utf-8"?>
50+
<settings xmlns="urn:umbracodeploy-settings">
51+
<valueConnectors>
52+
<valueConnector alias="nuPickers.DotNetCheckBoxPicker"
53+
type="Umbraco.Deploy.Contrib.Connectors.ValueConnectors.NuPickersValueConnector,Umbraco.Deploy.Contrib.Connectors" />
54+
<valueConnector alias="nuPickers.DotNetDropDownPicker"
55+
type="Umbraco.Deploy.Contrib.Connectors.ValueConnectors.NuPickersValueConnector,Umbraco.Deploy.Contrib.Connectors" />
56+
<valueConnector alias="nuPickers.DotNetPrefetchListPicker"
57+
type="Umbraco.Deploy.Contrib.Connectors.ValueConnectors.NuPickersValueConnector,Umbraco.Deploy.Contrib.Connectors" />
58+
<valueConnector alias="nuPickers.DotNetTypeaheadListPicker"
59+
type="Umbraco.Deploy.Contrib.Connectors.ValueConnectors.NuPickersValueConnector,Umbraco.Deploy.Contrib.Connectors" />
60+
</valueConnectors>
61+
</settings>
62+
```
63+
64+
## Timeout settings
65+
66+
Umbraco Deploy have a few built-in timeouts, which on larger sites might need to be modified. You will usually see these timeouts in the backoffice with an exception mentioning a timeout. It will be as part of a full restore or a full deploy of an entire site. In the normal workflow you should never hit these timeouts.
67+
68+
The defaults will cover most though. Changing the defaults by updating the `/Config/UmbracoDeploy.settings.config`. There are four settings available:
69+
70+
- `sessionTimeout`
71+
- `sourceDeployTimeout`
72+
- `httpClientTimeout`
73+
- `databaseCommandTimeout`
74+
75+
These timeout settings default to 20 minutes, but if you are transferring a lot of data you may need to increase it. All of these times are in *seconds*:
76+
77+
:::note
78+
It's important that these settings are added to both the source and target environments in order to work.
79+
:::
80+
81+
```xml
82+
<?xml version="1.0" encoding="utf-8"?>
83+
<settings xmlns="urn:umbracodeploy-settings">
84+
<deploy sessionTimeout="1800" sourceDeployTimeout="1800" httpClientTimeout="1800" databaseCommandTimeout="1800" />
85+
</settings>
86+
```
87+
88+
## Transfer Forms data as content
89+
90+
In order for Deploy to handle Forms data as content, you'll need to add the following setting to `UmbracoDeploy.Settings.config`:
91+
92+
```xml
93+
<?xml version="1.0" encoding="utf-8"?>
94+
<settings xmlns="urn:umbracodeploy-settings">
95+
<forms transferFormsAsContent="true" />
96+
</settings>
97+
```
98+
99+
## Transfer dictionary items as content
100+
101+
In a similar way, Deploy can be configured to allow for backoffice transfers of dictionary items instead of using files serialized to disk, by adding the following setting to `UmbracoDeploy.Settings.config`:
102+
103+
```xml
104+
<?xml version="1.0" encoding="utf-8"?>
105+
<settings xmlns="urn:umbracodeploy-settings">
106+
<dictionary transferDictionaryAsContent="true" />
107+
</settings>
108+
```
109+
110+
## Exporting member groups
111+
112+
This setting is to be defined and set to false only if you are using an external membership provider for your members. You will not want to export Member Groups that would no longer be managed by Umbraco but by an external membership provider.
113+
114+
Setting the `exportMemberGroups` to false will no longer export Member Groups to UDA entities on disk. By default if this setting is not present, its value will automatically be set to true as most sites use Umbraco's built-in membership provider and thus will want the membership groups exported.
115+
116+
```xml
117+
<?xml version="1.0" encoding="utf-8"?>
118+
<settings xmlns="urn:umbracodeploy-settings">
119+
<deploy exportMemberGroups="false" />
120+
</settings>
121+
```
122+
123+
## Ignore broken dependencies
124+
125+
When restoring or transferring content, Umbraco Deploy will make checks to ensure that any dependent content, media or other items are either present in the target environment, or can be deployed from the source environment.
126+
127+
For example, if you have a media picker on a content item, that references a media item that's been deleted or is in the recycle bin, you'll get an error and the deploy won't complete until the issue is resolved (by removing the reference to the deleted media item).
128+
129+
You can configure deploy to ignore these issues and proceed with the transfer operation without warning, with the following setting:
130+
131+
```xml
132+
<?xml version="1.0" encoding="utf-8"?>
133+
<settings xmlns="urn:umbracodeploy-settings">
134+
<deploy ignoreBrokenDependencies="true" />
135+
</settings>
136+
```
137+

0 commit comments

Comments
 (0)