Configuration Overview

Gunicorn pulls configuration information from three distinct places.

The first place that Gunicorn will read configuration from is the framework specific configuration file. Currently this only affects Paster applications.

The second source of configuration information is a configuration file that is optionally specified on the command line. Anything specified in the Gunicorn config file will override any framework specific settings.

Lastly, the command line arguments used to invoke Gunicorn are the final place considered for configuration settings. If an option is specified on the command line, this is the value that will be used.

Once again, in order of least to most authoritative:

  1. Framework Settings
  2. Configuration File
  3. Command Line

Note

To check your configuration when using the command line or the configuration file you can run the following command:

  1. $ gunicorn --check-config APP_MODULE

It also allows you to know if your application can be launched.