Fix support for multiple stack configurations and move most secrets into the quay-config project.

This commit is contained in:
jakedt 2014-04-07 16:59:22 -04:00
parent 8e9faf6121
commit 265fa5070a
23 changed files with 148 additions and 655 deletions

View file

@ -10,8 +10,14 @@ from app import app
logger = logging.getLogger(__name__)
db = app.config['DB_DRIVER'](app.config['DB_NAME'],
**app.config['DB_CONNECTION_ARGS'])
DRIVER_LIST = {
'SqliteDatabase': SqliteDatabase,
'MySQLDatabase': MySQLDatabase,
}
db = DRIVER_LIST[app.config['DB_DRIVER_NAME']](app.config['DB_NAME'],
**app.config['DB_CONNECTION_ARGS'])
def random_string_generator(length=16):
def random_string():