Skip to content

Latest commit

 

History

History
72 lines (62 loc) · 2.91 KB

tut-af-deploy-am-flights.adoc

File metadata and controls

72 lines (62 loc) · 2.91 KB

Deploying the American Flights App

reuse::partial$beta-banner.adoc

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. tut-af-design-am-flights-api.adoc

  2. tut-af-integrate-am-flights.adoc

  3. tut-af-implement-am-flights-api.adoc

  4. tut-af-debug-am-flights.adoc

  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.

  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