Customizing Init Scripts

Background

The per-workflow configure script has been removed. Use the workflow init script as the established location to run Stoobly commands and shell commands before a service workflow runs. Uses include, but are not limited to:

  1. Building source files

  2. Building fixtures to use for mocking

  3. Applying Stoobly rules (rewrite, match, firewall)

To learn more where it is used, see:

Workflowchevron-right

Customizing

  1. Each workflow provides an init script that runs during workflow startup

  2. It can be accessed in the following location:

.stoobly/services/<SERVICE-NAME>/<WORKFLOW-NAME>/init
  1. Add any Stoobly configuration commands and setup logic to this file

  2. Modifications to this file will not be overriten when the service create command is re-run.

Last updated