-
Notifications
You must be signed in to change notification settings - Fork 1
/
production.ini
69 lines (51 loc) · 1.37 KB
/
production.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[app:main]
env = production
debug = false
version = {{ version }}
use = egg:bycycle.webapi
mako.directories = bycycle.webapi:templates
mapbox.access_token = pk.eyJ1Ijoid3lsZWUiLCJhIjoiY2pwZzVwaWh1MGhqazNrcGRjaWdmcXVwbSJ9.6xWu2YkTMw7iAi56M6c9lw
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
retry.attempts = 3
sqlalchemy.url = postgresql://{{ database_user }}:{{ database_password }}@{{ database_host }}:{{ database_port }}/{{ database_name }}
frontend.url = //bycycle.org/
[pshell]
setup = bycycle.webapi.pshell.setup
[loggers]
keys = root, exc, bycycle
[handlers]
keys = file, exc
[formatters]
keys = generic, exc
[logger_root]
level = INFO
handlers = file
[logger_bycycle]
level = INFO
handlers =
qualname = bycycle
[handler_file]
class = handlers.RotatingFileHandler
args = ('{{ remote_site_root }}/app.log', 2**20, 5)
level = INFO
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
# Exc Logger
[logger_exc]
level = ERROR
handlers = exc
qualname = exc
propagate = 0
[handler_exc]
class = handlers.SMTPHandler
args = (('localhost', 25), 'error@bycycle.org', ['error@bycycle.org'], '[bycycle.org] ERROR')
level = ERROR
formatter = exc
[formatter_exc]
format = %(asctime)s %(message)s