Configuration and Running
=========================

Configuration
-------------

This app allows specification of a few
example configuration parameters. These
parameters should stored in a file formatted
similarly to `config.json.example`, and the name
of this file should be stored in the environment
variable `CONFIG_FILENAME` when running the service.

Running this module
---------------------

This module has been tested in the following execution environments:

* As an embedded Flask application.
  For example, the application could be launched as follows:

.. code-block:: python

   export FLASK_APP=/path/to/brian_dashboard_manager/app.py
   export CONFIG_FILENAME=/path/to/config.json
   flask run

* As a `gunicorn` wsgi service.

  * Details of `gunicorn` configuration can be found in the
    brian_dashboard_manager Puppet repository.