diff --git a/.github/workflows/backend-tests.yaml b/.github/workflows/backend-tests.yaml index b5434d7b..3d1c19ed 100644 --- a/.github/workflows/backend-tests.yaml +++ b/.github/workflows/backend-tests.yaml @@ -20,12 +20,6 @@ jobs: image: postgres:12 # For best results, match version in use by cloud.gov RDS ports: - 5432:5432 - build: - context: ./dev/db - command: > - -c ssl=on - -c ssl_cert_file=/var/lib/postgresql/server.crt - -c ssl_key_file=/var/lib/postgresql/server.key env: POSTGRES_PASSWORD: postgres options: >- diff --git a/training/database/database.py b/training/database/database.py index 906fc0f5..5e063425 100644 --- a/training/database/database.py +++ b/training/database/database.py @@ -4,7 +4,7 @@ # cloud.gov provides the URI in postgres:// format, but SQLAlchemy requires -# PostgreSQL URIs to use postgresql:// +# PostgreSQL URIs to use postgresql:// db_uri = settings.DB_URI.replace("postgres://", "postgresql://") engine = create_engine(db_uri, connect_args={'sslmode': 'require'})