Add proper "retry" support for basic postgres restart
This commit is contained in:
parent
b0a52dcec2
commit
9294d95ffb
|
@ -14,6 +14,9 @@ def main(global_config, **settings):
|
||||||
"""
|
"""
|
||||||
This function returns a Pyramid WSGI application.
|
This function returns a Pyramid WSGI application.
|
||||||
"""
|
"""
|
||||||
|
# set some defaults for postgres
|
||||||
|
app.provide_postgresql_settings(settings)
|
||||||
|
|
||||||
# prefer demo templates over tailbone
|
# prefer demo templates over tailbone
|
||||||
settings.setdefault('mako.directories', ['rattail_demo.web:templates',
|
settings.setdefault('mako.directories', ['rattail_demo.web:templates',
|
||||||
'tailbone:templates',])
|
'tailbone:templates',])
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -43,6 +43,9 @@ requires = [
|
||||||
#
|
#
|
||||||
# package # low high
|
# package # low high
|
||||||
|
|
||||||
|
# TODO: can remove this once tailbone requires it
|
||||||
|
'pyramid_retry', # 1.0
|
||||||
|
|
||||||
'invoke', # 0.22.1
|
'invoke', # 0.22.1
|
||||||
'psycopg2', # 2.6.2
|
'psycopg2', # 2.6.2
|
||||||
'rattail-corepos', # 0.1.0
|
'rattail-corepos', # 0.1.0
|
||||||
|
|
Loading…
Reference in a new issue