Setting Environment Variables
Mule runtime engine version 3.8 reached its End of Life on November 16, 2021. For more information, contact your Customer Success Manager to determine how to migrate to the latest Mule version. |
If you’re deploying multiple applications through a Shared Resources structure, then you shouldn’t set any properties in the project properties files, as there might potentially be conflicts between the various apps that share a domain. Instead, you can set environment variables over the scope of the deployed app, its domain and other apps under that domain.
The steps below explain how to set these environment variables in Studio. Note that these variables will only be used when deploying locally through Studio, when deploying your applications to Mule Standalone, you must provide these variables through the command line instead.
-
Open the dropdown menu next to the play button and select Run Configurations.
-
Select the corresponding Run Configuration. If one does not exist for your project, you can create one via the Create New icon above.
-
Then pick the Environment tab, and add the variables you need by clicking the New button.
-
The environment variables you create are defined at domain level, and will affect all of the applications associated to that domain when deploying locally via Studio.
See Also
-
Learn more about Shared Resources
-
If you’re deploying a single application, you can still set up Application Properties