Skip to main content
Skip table of contents

Running an app in safe mode

STANDARD PREMIUM ULTIMATE

Safe mode lets an app boot while keeping its flows stopped. This can help prevent repeated crash loops caused by flow execution, giving you time to inspect and adjust the flows before they run again.

Before you begin

Ensure you have the necessary roles and permissions to upgrade apps in your space and access to the YAML view for deployments.

Enable safe mode

To enable safe mode:

  1. Navigate to the app that should be started in safe mode.

  2. Start an app upgrade, as explained in Upgrading an App Deployment.

  3. In the upgrade dialog, in the “Infrastructure” section, switch to YAML view.

  4. Set the following value before completing the dialog:

    CODE
    enableSafeMode: true
  5. Review the deployment settings and complete the upgrade.

The change will typically appear within a minute.

After the app starts in safe mode, its flows remain stopped by default.

Safe mode message in the Flow Editor

When you open the Flow Editor for an app that is running in safe mode, the following message is displayed at the top:

Flows stopped in safe mode. Modify your flows and deploy changes to restart.

Modify the flows as needed, then deploy your changes to restart them.

Flows can be manually stopped, started, and restarted at any time by using the menu next to the Save button in the Flow Editor. This is possible regardless of whether safe mode is enabled. To learn more, see Starting, stopping, and restarting flows

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.