currentfeature/docs
Last change
on this file since 93bbb89 was
93bbb89,
checked in by Borja Lopez <borja@…>, 4 years ago
|
Added small modifications to the production.ini (ZEO zodb conn, log files)
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | ### |
---|
2 | # app configuration |
---|
3 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
---|
4 | ### |
---|
5 | |
---|
6 | [app:main] |
---|
7 | use = egg:ow |
---|
8 | |
---|
9 | pyramid.reload_templates = false |
---|
10 | pyramid.debug_authorization = false |
---|
11 | pyramid.debug_notfound = false |
---|
12 | pyramid.debug_routematch = false |
---|
13 | pyramid.default_locale_name = en |
---|
14 | |
---|
15 | # ZODB connection |
---|
16 | zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?storage=main&blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20 |
---|
17 | |
---|
18 | retry.attempts = 3 |
---|
19 | |
---|
20 | ### |
---|
21 | # wsgi server configuration |
---|
22 | ### |
---|
23 | |
---|
24 | [server:main] |
---|
25 | use = egg:waitress#main |
---|
26 | listen = *:6543 |
---|
27 | |
---|
28 | ### |
---|
29 | # logging configuration |
---|
30 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
---|
31 | ### |
---|
32 | |
---|
33 | [loggers] |
---|
34 | keys = root, ow |
---|
35 | |
---|
36 | [handlers] |
---|
37 | keys = filelog, console |
---|
38 | |
---|
39 | [formatters] |
---|
40 | keys = generic |
---|
41 | |
---|
42 | [logger_root] |
---|
43 | level = WARN |
---|
44 | handlers = filelog |
---|
45 | |
---|
46 | [logger_ow] |
---|
47 | level = WARN |
---|
48 | handlers = filelog |
---|
49 | qualname = ow |
---|
50 | |
---|
51 | [handler_console] |
---|
52 | class = StreamHandler |
---|
53 | args = (sys.stderr,) |
---|
54 | level = NOTSET |
---|
55 | formatter = generic |
---|
56 | |
---|
57 | [handler_filelog] |
---|
58 | class = FileHandler |
---|
59 | args = ('%(here)s/var/log/openworkouts.log', 'a') |
---|
60 | level = DEBUG |
---|
61 | formatter = generic |
---|
62 | |
---|
63 | [formatter_generic] |
---|
64 | format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |
---|
Note: See
TracBrowser
for help on using the repository browser.