Commit 3a8b2da1 authored by Tom Price's avatar Tom Price Committed by Will Pimblett
Browse files

Fix missing postgres config env vars.

These were failing in !80, appears to be the cause according to the logs.

See also: https://docs.gitlab.com/ee/ci/services/postgres.html
parent 6e9f02ef
variables:
POSTGRES_DB: xsacdb
POSTGRES_USER: runner
POSTGRES_PASSWORD: ""
POSTGRES_PASSWORD: "runner-password"
BSAC_DATA: "https://s3.amazonaws.com/xsacdb-bsac-data/bsac_data.yaml"
DOCKER_DRIVER: overlay2
......
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
TEMPLATE_DEBUG = False
# noinspection PyUnresolvedReferences
from .common import *
ALLOWED_HOSTS = ['*']
......@@ -31,10 +30,10 @@ MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'xsacdb', # Or path to database file if using sqlite3.
'USER': 'runner', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'PASSWORD': 'runner-password', # Not used with sqlite3.
'HOST': 'postgres', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment