Contact Us 1-800-596-4880

Deploy a Mule Application to CloudHub


To successfully deploy your Mule application to CloudHub, consider the following requirements:

  • The host and port number of your HTTP Listener flow sources are properly configured.
    If you are using the HTTP Listener as sources for your flow, you need to set its host to and its port to ${http.port}.
    CloudHub then dynamically allocates a port at deployment time.

  • All your external classes and resources are properly declared in the mule-artifact.json file of your Mule application.
    Due to Mule 4.x classloading isolation mechanism, all external classes and resources must be explicitly declared in the "exportedPackages" and "exportedResources" fields on the mule-artifact.json file before packaging and deploying the application.

    See the How to Export Resources task to learn more about working with external resources in your Mule application.

Deploy to CloudHub

  1. Right click the project folder on your Package Explorer View.

  2. Select Anypoint Platform and then Deploy to CloudHub.
    If you don’t have your Anypoint Platform credentials configured in Anypoint Studio, you’ll need to provide your log in information before continuing.

  3. Configure the CloudHub instance to which your application is being deployed.
    Anypoint Studio uses your package name as the name for your application on CloudHub. This name is part of the domain of your deployed application.
    For example, naming your application "deployment-1" makes your application’s public domain "".
    You can also configure the runtime version. By default, Studio uses the application version you are using in your project during development.
    To reduce compatibility risks, you should always deploy to the runtime version in which your Mule project is created or the closest alternative.

    Additionally you can configure the amount of worker and worker size for the CloudHub instance you are going to use, enable Insight, static IPs, configure log levels, and properties placeholders for your application.

Redeploy to CloudHub

After you deploy your application from Anypoint Studio for the first time, you can keep modifying the application’s code and repeat the steps 1 and 2 above to redeploy your updated application.
When you get to the CloudHub instance configuration window, the "Overwrite Existing Application" option would already be selected for you. This allows you to redeploy the application.