source: OpenWorkouts-current/development.ini @ fcf0ef3

current
Last change on this file since fcf0ef3 was 2142a49, checked in by Borja Lopez <borja@…>, 5 years ago

Use ZEO in development mode too.

(we will need it once we start running separated process to run tasks,
like sending queued emails)

Adapted bin/start so it handles starting/stopping ZEO instances.

Added some messages to be shown to the user when running the start script,
helping understanding what the script is doing.

Run pserve in the background, instead of leaving it there on the shell.

Added a bin/stop script that stops pserve and ZEO.

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[5ec3a0b]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 = true
10pyramid.debug_authorization = false
11pyramid.debug_notfound = false
12pyramid.debug_routematch = false
13pyramid.default_locale_name = en
[929097a]14#pyramid.includes =
15#    pyramid_debugtoolbar
[5ec3a0b]16
17# Use this for local, single-process pserve database access
[2142a49]18# zodbconn.uri = file://%(here)s/var/db/Data.fs?connection_cache_size=20000&blobstorage_dir=%(here)s/var/db/blobs
[5ec3a0b]19# Use this for ZEO
[2142a49]20zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20
[5ec3a0b]21
22retry.attempts = 3
23
24# By default, the toolbar only appears for clients from IP addresses
25# '127.0.0.1' and '::1'.
26# debugtoolbar.hosts = 127.0.0.1 ::1
27
[57dcceb]28# session and auth secret hashes (used in ow/__init__.py)
29session.secret = V4j:DL12^Gs//ho5)V94$j"Ue"F%%wn{BT]KrSx`b3pmRj<Z&e3QP|fgPGEZT@\#
30auth.secret = l9|^@~wQoVKPQoI`GHK5M9ps@S7L:QNU?pF}.jI(9RWZVc<EM)aQv/j~l\#xC++;5
31
[76ebb1b]32# pyramid_mailer configuration
33mail.default_sender = noreply@openworkouts.org
34mail.queue_path = %(here)s/var/spool/mqueue
35mail.queue_processor_lock = %(here)s/var/run/mail-queue-processor.lock
36mail.host = mail.openworkouts.org
37mail.tls = True
38mail.username = noreply@openworkouts.org
39mail.password = PASSWORD
40
[57dcceb]41
[5ec3a0b]42###
43# wsgi server configuration
44###
45
46[server:main]
47use = egg:waitress#main
48listen = localhost:9999
49
50###
51# logging configuration
52# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
53###
54
55[loggers]
[591ae81]56keys = root, ow, QueueProcessor
[5ec3a0b]57
58[handlers]
[591ae81]59keys = filelog, console, queueprocessor
[5ec3a0b]60
61[formatters]
62keys = generic
63
64[logger_root]
65level = INFO
[591ae81]66handlers = filelog, console
[5ec3a0b]67
68[logger_ow]
69level = DEBUG
70handlers =
71qualname = ow
72
[591ae81]73[logger_QueueProcessor]
74level = DEBUG
75handlers = queueprocessor
76qualname = QueueProcessor
77propagate = 0
78
[5ec3a0b]79[handler_console]
80class = StreamHandler
81args = (sys.stderr,)
82level = NOTSET
83formatter = generic
84
[591ae81]85[handler_filelog]
86class = FileHandler
87args = ('%(here)s/var/log/openworkouts.log', 'a')
88level = DEBUG
89formatter = generic
90
91[handler_queueprocessor]
92class = FileHandler
93args = ('%(here)s/var/log/queueprocessor.log','a')
94level = DEBUG
95formatter = generic
96
[5ec3a0b]97[formatter_generic]
98format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Note: See TracBrowser for help on using the repository browser.