From 15f206e37c2e6c9b455d444a6e3ed4d6fcfec73d Mon Sep 17 00:00:00 2001 From: lamya-rey Date: Mon, 18 Jan 2021 12:16:41 +0100 Subject: [PATCH] :construction_worker: configure db --- .circleci/config.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4503a81..bc9ecf0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,9 +28,9 @@ jobs: - image: circleci/python:latest - image: circleci/postgres:9.6.2-alpine environment: - POSTGRES_USER: postgres + POSTGRES_USER: myUser POSTGRES_DB: postgres - POSTGRES_PASSWORD: root + POSTGRES_PASSWORD: somePwd working_directory: ~/repo steps: - checkout @@ -45,11 +45,11 @@ jobs: environment: CONDUIT_SECRET: 'something-really-secret' FLASK_APP: /home/circleci/repo/autoapp.py - DATABASE_URL: postgresql://postgres:root@localhost:5432/postgres + DATABASE_URL: postgresql://myUser:somePwd@localhost:5432/postgres FLASK_DEBUG: 1 - POSTGRES_USER: postgres + POSTGRES_USER: myUser POSTGRES_DB: postgres - POSTGRES_PASSWORD: root + POSTGRES_PASSWORD: somePwd POSTGRES_PORT: 5432 - run: name: db test @@ -60,11 +60,11 @@ jobs: environment: CONDUIT_SECRET: 'something-really-secret' FLASK_APP: /home/circleci/repo/autoapp.py - DATABASE_URL: postgresql://postgres:root@localhost:5432/postgres + DATABASE_URL: postgresql://myUser:somePwd@localhost:5432/postgres FLASK_DEBUG: 1 - POSTGRES_USER: postgres + POSTGRES_USER: myUser POSTGRES_DB: postgres - POSTGRES_PASSWORD: root + POSTGRES_PASSWORD: somePwd POSTGRES_PORT: 5432 deploy-heroku: