From 5f17ed4f4b473fdf4a2a2263d6bf16ef526b9341 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 17 Jan 2021 19:37:41 +0100 Subject: [PATCH] :heart: fix db connection 12 --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d5907e9..20926e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2 # use CircleCI 2.0 jobs: # A basic unit of work in a run build: # runs not using Workflows must have a `build` job as entry point # directory where steps are run - # working_directory: ~/circleci-demo-python-django + working_directory: ~/circleci-demo-python-django docker: # run the steps with Docker # CircleCI Python images available at: https://hub.docker.com/r/circleci/python/ - image: circleci/python:3.9.1 @@ -21,7 +21,6 @@ jobs: # A basic unit of work in a run POSTGRES_USER: circle_test POSTGRES_PASSOWRD: pwd POSTGRES_DB: circle_test - working_directory: ~/repo steps: # steps that comprise the `build` job - checkout # check out source code to working directory # - run: sudo chown -R circleci:circleci /usr/local/bin @@ -58,7 +57,7 @@ jobs: # A basic unit of work in a run POSTGRES_USER: circle_test POSTGRES_PASSOWRD: pwd POSTGRES_DB: circle_test - working_directory: ~/repo + working_directory: ~/circleci-demo-python-django steps: - checkout - restore_cache: @@ -66,7 +65,7 @@ jobs: # A basic unit of work in a run - run: name: bd upgrade command: | - source venv/bin/activate + . venv/bin/activate sleep 1 flask db upgrade environment: @@ -92,6 +91,7 @@ jobs: # A basic unit of work in a run heroku: docker: - image: buildpack-deps:trusty + working_directory: ~/circleci-demo-python-django steps: - checkout