Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:pyramid [2015/08/05 18:37] – [bower] scipio | tips:pyramid [2015/08/18 12:32] (current) – [yml] scipio | ||
---|---|---|---|
Line 107: | Line 107: | ||
< | < | ||
gunicorn --paste development.ini | gunicorn --paste development.ini | ||
+ | </ | ||
+ | |||
+ | ===== yaml ===== | ||
+ | |||
+ | Use yaml file as configuration container. See [[http:// | ||
+ | |||
+ | setup.py | ||
+ | < | ||
+ | requires = [ | ||
+ | ... | ||
+ | ' | ||
+ | .... | ||
+ | </ | ||
+ | |||
+ | __init__.py | ||
+ | < | ||
+ | config.include(' | ||
+ | </ | ||
+ | |||
+ | |||
+ | *ini | ||
+ | < | ||
+ | yaml.location = / | ||
+ | env = dev | ||
+ | </ | ||
+ | |||
+ | config.yml | ||
+ | < | ||
+ | configurator: | ||
+ | serial_code : ' | ||
+ | serial.port : '/ | ||
+ | serial.speed : 9600 | ||
+ | test.serial.port : '/ | ||
+ | test.serial.speed : 9600 | ||
+ | wamp.router.url : ' | ||
+ | wamp.router.push : ' | ||
+ | wamp.realm : ' | ||
</ | </ | ||