benoitc b7b51adf13 allows gunicorn to bind to multiple address
Allows gunicorn to listen on different interface. It can be either ipv6,
unix or ipv4 sockets.

Ex:

    gunicorn -w3 -b 127.0.0.1:8001 -b 127.0.0.1:8000 -b [::1]:8000 test:app

fix #444
2012-12-14 10:18:39 +01:00

69 lines
1.3 KiB
INI

#
# pylonstest - Pylons testing environment configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = false
# Uncomment and replace with the address which should receive any error reports
#email_to = you@yourdomain.com
smtp_server = localhost
error_email_from = paste@localhost
[server:main]
use = egg:gunicorn#main
host = 127.0.0.1:8000, 127.0.0.1:8001
workers = 2
[app:main]
use = egg:pylonstest
full_stack = true
static_files = true
cache_dir = %(here)s/data
beaker.session.key = pylonstest
beaker.session.secret = somesecret
# Add additional test specific configuration options as necessary.
# Logging configuration
[loggers]
keys = root, routes, pylonstest
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_routes]
level = INFO
handlers =
qualname = routes.middleware
# "level = DEBUG" logs the route matched and routing variables.
[logger_pylonstest]
level = DEBUG
handlers =
qualname = pylonstest
[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
[logger_gunicornerror]
level = DEBUG
handlers =
qualname = gunicorn.error