Skip to content

Commit 74e2276

Browse files
Merge pull request #10988 from mruiserrmendix/patch-12
Enhance licensing instructions for Portable App Distribution
2 parents 2f89ef1 + cba8f80 commit 74e2276

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

  • content/en/docs/deployment/general/licensing-apps

content/en/docs/deployment/general/licensing-apps/_index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ You will need to add the license credentials and configure the license in the Me
9090

9191
### Cloud Foundry{#cloudfoundry}
9292

93+
The following steps describe activating the license for deployments using the Cloud Foundry Buildpack. If you are deploying using Portable App Distribution, follow the steps in the [Portable App Distribution](#portableappdistribution) section below.
94+
9395
To activate a license on your app running on Cloud Foundry, you need the license credentials provided by Mendix Support.
9496

9597
The two environment variables `LICENSE_ID` and `LICENSE_KEY` need to be set to the values of the **LicenseId** and **LicenseKey** provided by Mendix Support. Do this by running the following two commands, replacing `<YOUR_APP>` with the name of your app.
@@ -103,6 +105,8 @@ Then restart the app so that the environment variables are read and the license
103105

104106
### Docker
105107

108+
The following steps describe activating the license for deployments using the Docker Buildpack. If you are deploying using Portable App Distribution, follow the steps in the [Portable App Distribution](#portableappdistribution) section below.
109+
106110
To activate a license on your app running in a Docker container, you need the license credentials provided by Mendix Support.
107111

108112
Two additional environment variables, `LICENSE_ID` and `LICENSE_KEY`, need to be set to the values of the **LicenseId** and **LicenseKey** provided by Mendix Support. To do this, add them to the startup command for your container.
@@ -133,6 +137,8 @@ For full instructions on how to do this, see [Activate a Mendix License on Micro
133137

134138
### Unix-Like Server
135139

140+
The following steps describe activating the license for deployments using the M2EE tool. If you are deploying using Portable App Distribution, follow the steps in the [Portable App Distribution](#portableappdistribution) section below.
141+
136142
To license a Mendix app on Linux or another Unix-like operating system, follow these steps:
137143

138144
1. Open the interactive m2ee console.
@@ -141,3 +147,20 @@ To license a Mendix app on Linux or another Unix-like operating system, follow t
141147
4. Activate your license on the server, using the m2ee command `activate_license`.
142148

143149
For more instructions on how to do this, see [Linux Deployment](/developerportal/deploy/linux/).
150+
151+
### Portable App Distribution{#portableappdistribution}
152+
153+
To activate the license on a Mendix app using Portable App Distribution on either Docker, Cloud Foundry, or Unix-like servers, follow these steps:
154+
155+
1. Open the `$ConfigName.conf` in `etc/configurations`.
156+
2.  Add the `LicenseID` and `LicenseKey` to your runtime configuration:
157+
158+
```bash
159+
# License configuration
160+
runtime.params {
161+
License.LicenseID = <licenseId>
162+
License.LicenseKey = <license_Key
163+
}
164+
```
165+
166+
The values for these properties can also be passed by using environment variables for your deployment type, or by creating a separate config file.

0 commit comments

Comments
 (0)