From e9b35a7b0e718c5454bb648b5bab82add7878b6e Mon Sep 17 00:00:00 2001 From: Cristian Date: Tue, 20 Oct 2020 17:41:49 -0300 Subject: [PATCH] chore: add circle ci database log config --- .circleci/config.yml | 6 +++++- project/circleci_settings.py | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 89b65727..82e1b461 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,11 @@ jobs: - image: circleci/postgres:12 environment: POSTGRES_USER: circleci - POSTGRES_DB: circle_test + POSTGRES_DB: "circle_test" + POSTGRES_HOST_AUTH_METHOD: trust + environment: + POSTGRES_USER: circleci + POSTGRES_DB: "circle_test_logs" POSTGRES_HOST_AUTH_METHOD: trust working_directory: ~/repo diff --git a/project/circleci_settings.py b/project/circleci_settings.py index ba4339cc..93e2d83e 100644 --- a/project/circleci_settings.py +++ b/project/circleci_settings.py @@ -11,13 +11,13 @@ 'HOST': 'localhost', 'PORT': '5432', }, - 'logs': { + 'logs': { 'ENGINE': 'django.db.backends.postgresql', - 'NAME': 'logs-database-name', - 'USER': '', + 'NAME': 'circle_test_logs', + 'USER': 'circleci', 'PASSWORD': '', - 'HOST': '', - 'PORT': '', + 'HOST': 'localhost', + 'PORT': '5432', } }