Skip to content

Commit

Permalink
revert - this did not work
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-meyer committed Jul 21, 2023
1 parent 03714de commit a7fe82d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/backend-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand Down
2 changes: 1 addition & 1 deletion training/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
Expand Down

0 comments on commit a7fe82d

Please sign in to comment.