Contact Us 1-800-596-4880

Compiling Custom Policies

Compile your custom policy to create the policies binary target files by using the make build command. You must compile your custom policy after every time you edit the policy’s source code before you can deploy the policy to a Flex Gateway.

Before You Begin

Ensure you have completed all the steps in Creating a New Project.

Compile Using Build Command

To compile the policy, run the make build command from the policy’s root folder:

make build

The make build command preforms the following actions:

  1. Runs the make build-asset-files script

  2. Runs the make build command to compile the policy to a WebAssembly binary file

  3. Generates additional configuration files that are not generated by the make build-asset-files script and are required to execute the policy

The make build command outputs the generated files to the target directories.

You can execute the make build command as many times as necessary to generate compiled artifacts. You must compile the custom policy for your source code and configuration edits to be present in the compiled artifacts.