Read database host and user from environment (used by CI pipeline)

This commit is contained in:
fnux 2020-03-09 11:57:18 +01:00
commit ae6548e168
2 changed files with 4 additions and 0 deletions

View file

@ -28,6 +28,8 @@ except ModuleNotFoundError:
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': uncloud.secrets.POSTGRESQL_DB_NAME,
'HOST': os.environ.get('DATABASE_HOST'),
'USER': os.environ.get('DATABASE_USER'),
}
}