move corresponding file to risotto-setting

This commit is contained in:
2020-03-04 15:15:07 +01:00
parent 299a9f52a0
commit b39aac8fd2
23 changed files with 12 additions and 2343 deletions

View File

@ -8,6 +8,7 @@ DEFAULT_DSN = environ.get('RISOTTO_DSN', 'postgres:///risotto?host=/var/run/post
DEFAULT_TIRAMISU_DSN = environ.get('DEFAULT_TIRAMISU_DSN', 'postgres:///tiramisu?host=/var/run/postgresql/&user=tiramisu')
MESSAGE_PATH = environ.get('MESSAGE_PATH', '/root/risotto-message/messages')
MODULE_NAME = environ.get('MODULE_NAME', 'test')
SQL_FILENAME = f'/root/risotto-{MODULE_NAME}/sql/init.sql'
def get_config():
@ -22,6 +23,7 @@ def get_config():
'check_role': True,
'admin_user': DEFAULT_USER,
'module_name': MODULE_NAME,
'sql_filename': SQL_FILENAME,
'version': 'v1'},
'source': {'root_path': '/srv/seed'},
'cache': {'root_path': '/var/cache/risotto'},