If you have a licensed app in Mendix Cloud v4 which you want to deploy directly to an environment, you need to select a target environment where Mendix Studio and Mendix Studio Pro will deploy your app when you click Publish (for Studio) or Deploy to Licensed Cloud Node (for Studio Pro). For more information on licensed apps and environments, see Mendix Cloud and Environments.
By default the target environment is not selected. Thus, when you try to publish, you will get a warning message in Studio, or an error message in Studio Pro. For more information, see Previewing & Publishing Your App in the Studio Guide or Deploy to the Cloud in the Studio Pro Guide.
When you deploy from Mendix Studio Pro, the deployment will also restart the target environment.
If you do not want to set a target environment, you can deploy from Studio Pro by first adding the MDA to the Deployment Package Repository. Either:
- Create a Deployment Package from the Project menu in Studio Pro and then upload it using the Environments page
- Commit the current version of your app and then choose Create a Package from Team Server on the Environments page
Once you have your MDA in the Deployment Package Repository you can deploy it from within the Developer Portal.
2 Selecting the Target Environment
To select the target environment, do the following:
Open Deploy > Environments in the left menu bar in the Developer Portal.
In the Deploy tab > Environments section, select the target environment that you want to select for Studio and Studio Pro deployment by clicking Details.
Only a Technical Contact can see the Change button and click it.
In the Select Studio Target dialog box, click the drop-down menu and select the environment.
You have selected the target environment and can now deploy your app to that environment from either Studio or Studio Pro.