Execution Modes
The service can run in one of two modes: production mode or development mode.
Development mode is activated using the -d
or --dev
flag. Running in this mode will lock the service host to 127.0.0.1
to avoid firewall issues when developing using MacOS. You can override this setting using -H 0.0.0.0
if needed.
Development mode will also activate useful middlewares that help print incoming request body, input data validation errors for debugging, and set the logger level to debug for ease of development. Everything else is identical to running in production mode.
You can change the behaviour of the service using flags, see the list of flags below for more.