Debugging
The router can be debugged and tested in multiple ways.
Load a static execution config from file
Instead of letting the router fetch the config from the platform, you can also point to a local file. This is handy for local development. Your production config can be fetched by running wgc router fetch or wgc router compose to generate a execution config without the need to interact with the controlplane.
The command above will mount your local file config.json
into the router's working directory.
Docker --env-file
allows you to specify all environment variables in your .env
file instead of passing all of them through -e
flags.
Watch for config changes
You can enable the watch mode to perform a hot-reload of the router whenever you make changes to the configuration.
Debug log level
Enable debug mode by setting the environment variable LOG_LEVEL=debug
or via configuration file.
Last updated