Add proper "retry" support for basic postgres restart

This commit is contained in:
Lance Edgar 2018-11-28 19:52:57 -06:00
parent b0a52dcec2
commit 9294d95ffb
2 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,9 @@ def main(global_config, **settings):
"""
This function returns a Pyramid WSGI application.
"""
# set some defaults for postgres
app.provide_postgresql_settings(settings)
# prefer demo templates over tailbone
settings.setdefault('mako.directories', ['rattail_demo.web:templates',
'tailbone:templates',])

View file

@ -43,6 +43,9 @@ requires = [
#
# package # low high
# TODO: can remove this once tailbone requires it
'pyramid_retry', # 1.0
'invoke', # 0.22.1
'psycopg2', # 2.6.2
'rattail-corepos', # 0.1.0