Building the App

After you have created your app, you can build it anytime. When you build the app, its deployable artifact gets created and downloaded to your local machine. Each operating system has its own build target. You must select the right target for your operating system when building the app. You can use the built artifact to run the app.

Note: Make sure that you have installed Docker on your machine. Refer to the product Readme for the supported versions of Docker.
Important: For app binaries that were created in Flogo Enterprise 2.5 or older versions, if the app binary was created using an <app>.json file and contains a flow starting with a trigger and the app binary was created from the CLI using the build tool, the app gets successfully built but throws an error at runtime.
    Procedure
  1. Open the Apps page.
  2. Click the app for which you want to build an app binary. The page for the selected app opens.
  3. On the page that opens, click Validate and resolve errors, if any.
  4. Click Build and select a build target option that is compatible with your operating system (such as Darwin/amd64 for Macintosh).
    The following build target options are available:
    • Macintosh: Darwin/amd64
    • 64-bit Linux: Linux/amd64
    • 32-bit Linux: Linux/x86
    • Microsoft Windows: Windows/amd64
    • Docker Image
    The app begins to build. When it is built, the deployable artifact is downloaded to your local machine. In the case of Docker, a Docker image gets created in your Docker storage area.
    Note: Any uppercase letters in your app name get converted to lowercase in the Docker image name. For instance, if your app is named MyApp, the Docker image that gets generated is named myapp.

Running the App

On Macintosh and Linux

  1. Open a terminal.
  2. Run:
  3. chmod +x <app-file-name>

  4. Run:
  5. ./<app-file-name>

On Microsoft Windows

At the command prompt, run: 

<app-file-name>.exe

For Docker Image

Note: Any uppercase letters in your app name get converted to lowercase in the Docker image name. For instance, if your app is named MyApp, the Docker image that gets generated is named myapp. So, make sure you use all lowercase letters in the app-file-name in the command below.

  1. Open a terminal.
  2. Run: docker run -p <<host-port-number>>:<port-on-docker> flogo/<app-file-name>