Running the App Locally
Selecting a Runtime for Your App
- Procedure
- Select the app from Explorer for which a runtime needs to be selected.
- 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. - 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
- Select the app that you want to run in Explorer View.
- Navigate to Explorer View > Flogo App Workspace and click the dropdown icon.
-
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.
Testing the App on the OS terminal
- Procedure
- Open a terminal.
-
Run:
chmod +x <app-file-name>
Note: Make sure that you run the app binary file and not the .FLOGO file. - Run:
./<app-file-name>
On Microsoft Windows
At the command prompt, run:
<app-file-name>.exe