Skip to content

Commit

Permalink
Fixing Postgis connection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jul 6, 2020
1 parent 822c1ed commit 367ae33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ jobs:
Test-Build:
docker:
- image: vichuhari100/care-base:latest
environment:
PGHOST: 127.0.0.1
PGUSER: care
DATABASE_URL: "postgis://care@localhost/care-test"
- image: circleci/postgres:latest-postgis
environment:
POSTGRES_DB: care_test
POSTGRES_USER: care
POSTGRES_DB: care-test
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- checkout
Expand Down
2 changes: 1 addition & 1 deletion config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"test_without_migrations",
]

DATABASES = {"default": env.db("DATABASE_URL", default="postgis:///care_test")}
DATABASES = {"default": env.db("DATABASE_URL", default="postgis:///care-test")}
DATABASES["default"]["ATOMIC_REQUESTS"] = True
DATABASES["default"]["ENGINE"] = "django.contrib.gis.db.backends.postgis"

0 comments on commit 367ae33

Please sign in to comment.