Running the App Locally

Selecting a Runtime for Your App

 To select and set a runtime environment for your app: 
    Procedure
  1. Select the app from Explorer for which a runtime needs to be selected.
  2. Under FLOGO APP, select Select a runtime to see available actions.
    A list of existing runtimes is displayed at the top. If you do not want to use an existing one, you can create a runtime by clicking Create new runtime.
  3. Select the desired runtime environment from the list at the top.
    Note: Ensure that the selected runtime has [Current] as a suffix.
    For information on how to create a local runtime environment, see Creating Local Runtime

Running the App

    Procedure
  1. Select the app that you want to run in Explorer View.
  2. Navigate to Explorer View > Flogo App Workspace and click the dropdown icon.

  3. Click the Run icon. When you click the Configure and Run icon, you see the following options:

    • Environment variables: To add environment variables when running an app. For more information, see Overriding an App Property at Runtime and Environment Variables.

    • Configure Run mode: To choose between Docker App and Executable modes. To run an app in a docker container, see Generating an Application Docker Image Locally. Select Executable if you want to run the application binary locally.

    • Save and Run: To save and run the same configuration for all the apps.

    • Run: To add a particular app with a selected configuration, without saving it for the next run.

For a list of the environment variables, see Environment Variables.

ResultWhen it runs successfully, you can see the logs in the terminal window of the Visual Studio Code.

Testing the App on the OS terminal

On the Macintosh and Linux

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

    Note: Make sure that you run the app binary file and not the .FLOGO file.
  3. Run:
  4. ./<app-file-name>

On Microsoft Windows

At the command prompt, run: 

<app-file-name>.exe