Understand Gunicorn configuration priority
masterGunicorn resolves configuration settings from five sources. If multiple sources define the same setting, the source with the higher priority wins. The priority order (from lowest to highest) is:
- Environment variables (only for settings that support them).
- Framework-specific configuration (currently only supported for Paste Deploy).
- Python configuration file (defaults to
gunicorn.conf.pyin the working directory). GUNICORN_CMD_ARGSenvironment variable.- Command-line arguments.
Note: If a configuration file is specified via both GUNICORN_CMD_ARGS and the CLI, only the file specified on the command line is used.