Contact Us 1-800-596-4880

Deploying the American Flights App

logo cloud IDE Cloud IDE

logo desktop IDE Desktop IDE

Open Beta Release: The cloud IDE is in open beta. Any use of Anypoint Code Builder in its beta state is subject to the applicable beta services terms and conditions, available from the IDE.

Deploy the American Flights application to CloudHub. After deploying to CloudHub, manage your application through Anypoint Runtime Manager.

Anypoint Code Builder deploys Mule applications to the non-production Sandbox environment in CloudHub.

Before You Begin

Complete these procedures:

  1. Designing the American Flights API Spec

  2. Integrating American Flights Processes

  3. Implementing the American Flights API Spec

  4. Debugging the American Flights App

  5. Log in to Anypoint Platform from the IDE. If you do not log in, the IDE prompts you to log in when an operation that you perform requires authentication. You can follow the prompts in the UI to complete the login process when prompted.

Deploy an Application to CloudHub

  1. Open your project in Anypoint Code Builder.

  2. Click the (Deploy to CloudHub) icon when your configuration XML file is open, for example:

    Deploy to CloudHub

    Alternatively, open the Command Palette by pressing Cmd+Shift+p (Mac) or Ctrl+Shift+p (Windows), and provide this command:

    MuleSoft: Deploy to CloudHub
    MuleSoft: Deploy to CloudHub command highlighted
  3. If prompted, sign in to Anypoint Platform.

  4. When prompted, click Deploy.

    Anypoint Code Builder creates and opens a deployment file (deploy.json) for your review, for example:

    {
      "runtime": "4.4.0",
      "workerSize": 0.1,
      "applicationName": "american-ws-anypoint-code-builder"
      "workers": 1,
      "autoStart": true
    }
    • The applicationName property defines part of the URL for accessing your application on CloudHub.

    • The name must be unique across all applications deployed to your business group in CloudHub.

    • The runtime version is the Mule runtime version you select when creating the integration.

      For information about version support and automated Mule patch updates, see Mule and Java version support.

  5. After reviewing the deployment configuration, click Deploy to deploy the application to CloudHub:

    Deployment configuration file created pop-up message
  6. Select the Sandbox environment:

    Design and Sandbox environment options highlighted

    Other environments are not supported.

    Anypoint Code Builder packages and deploys the application to CloudHub.

  7. After deployment completes, select Open in Runtime Manager.

  8. Select your application from the list applications.

  9. Check the domain name for your application and, optionally, test the application.

    For example, the name of the American Flights example on the EU cloud is similar to american-ws-anypoint-code-builder.eu-s1.cloudhub.io. To start the example, open your REST client or browser, and make a GET request to the URI, for example: http://american-ws-anypoint-code-builder.eu-s1.cloudhub.io/api/flights