Skip to content

Instantly share code, notes, and snippets.

@jdesboeufs
Created November 25, 2014 13:28
Show Gist options
  • Save jdesboeufs/439200131435a167593f to your computer and use it in GitHub Desktop.
Save jdesboeufs/439200131435a167593f to your computer and use it in GitHub Desktop.
Configuration locale OpenFisca
# OpenFisca-Web-API - Development environment configuration
#
# The %(here)s variable will be replaced with the parent directory of this file.
[DEFAULT]
debug = true
# Uncomment and replace with the address which should receive any error reports
# email_to = openfisca-monitoring@sgmap.fr
# smtp_server = localhost
# error_email_from = openfisca-mes-aides@sgmap.fr
# error_from = openfisca-mes-aides@sgmap.fr
[server:main]
use = egg:gunicorn#main
workers = 3
proc_name = openfisca
host = 127.0.0.1
port = 2000
# logconfig = %(here)s/development.ini
[app:main]
use = egg:OpenFisca-Web-API
cache_dir = %(here)s/cache
country_package = openfisca_france
log_level = DEBUG
# Logging configuration
[loggers]
keys = root, openfisca_web_api
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_openfisca_web_api]
level = DEBUG
handlers =
qualname = openfisca_web_api
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
gunicorn --paster development.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment