source: OpenWorkouts-current/staging.ini @ 5934220

currentfeature/docs
Last change on this file since 5934220 was 5934220, checked in by Borja Lopez <borja@…>, 4 years ago

(#47) - Added needed config files and helper scripts for the deploy to staging

  • 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]
7use = egg:ow
8
9pyramid.reload_templates = false
10pyramid.debug_authorization = false
11pyramid.debug_notfound = false
12pyramid.debug_routematch = false
13pyramid.default_locale_name = en
14
15# ZODB connection
16zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20
17
18retry.attempts = 3
19
20###
21# wsgi server configuration
22###
23
24[server:main]
25use = egg:waitress#main
26listen = localhost:9999
27
28###
29# logging configuration
30# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
31###
32
33[loggers]
34keys = root, ow
35
36[handlers]
37keys = filelog, console
38
39[formatters]
40keys = generic
41
42[logger_root]
43level = WARN
44handlers = filelog
45
46[logger_ow]
47level = WARN
48handlers = filelog
49qualname = ow
50
51[handler_console]
52class = StreamHandler
53args = (sys.stderr,)
54level = NOTSET
55formatter = generic
56
57[handler_filelog]
58class = FileHandler
59args = ('%(here)s/var/log/openworkouts.log', 'a')
60level = DEBUG
61formatter = generic
62
63[formatter_generic]
64format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Note: See TracBrowser for help on using the repository browser.