Nav
You are viewing an older version of this section. Click here to navigate to the latest version.

Setting Environment Variables

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.

  1. Open the dropdown menu next to the play button and select Run Configurations.

    run+configurations+1

  2. Select the corresponding Run Configuration. If one does not exist for your project, you can create one via the Create New icon above.

    run+configurations+4

  3. Then pick the Environment tab, and add the variables you need by clicking the New button.

    run+configurations+2

  4. 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

In this topic: