Skip to content

Commit

Permalink
Use postgresql:// scheme rather than postgres, for latest psycopg2 li…
Browse files Browse the repository at this point in the history
…brary
  • Loading branch information
nottrobin committed Feb 21, 2022
1 parent 8496eb3 commit 6033566
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORT=8001
FLASK_DEBUG=true
DEVEL=true
DATABASE_URL=postgres://postgres@localhost:5432/postgres
DATABASE_URL=postgresql://postgres@localhost:5432/postgres
SECRET_KEY=insecure_dev_key
CONTRACTS_LIVE_API_URL=https://contracts.canonical.com/
CONTRACTS_TEST_API_URL=https://contracts.staging.canonical.com/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/a11y.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Accessibility checks
env:
SECRET_KEY: insecure_test_key
DATABASE_URL: postgres://postgres@localhost:5432/postgres
DATABASE_URL: postgresql://postgres@localhost:5432/postgres
PORT: 8001
CONTRACTS_LIVE_API_URL: contracts.canonical.com

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress-main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Cypress checks / main
env:
SECRET_KEY: insecure_test_key
DATABASE_URL: postgres://postgres@localhost:5432/postgres
DATABASE_URL: postgresql://postgres@localhost:5432/postgres
PORT: 8001
CONTRACTS_LIVE_API_URL: contracts.canonical.com
CAPTCHA_TESTING_API_KEY: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Cypress checks / PR
env:
SECRET_KEY: insecure_test_key
DATABASE_URL: postgres://postgres@localhost:5432/postgres
DATABASE_URL: postgresql://postgres@localhost:5432/postgres
PORT: 8001
CONTRACTS_LIVE_API_URL: contracts.canonical.com
CAPTCHA_TESTING_API_KEY: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR checks
on: [push, pull_request]
env:
SECRET_KEY: insecure_test_key
DATABASE_URL: postgres://postgres@localhost:5432/postgres
DATABASE_URL: postgresql://postgres@localhost:5432/postgres

jobs:
run-image:
Expand All @@ -29,7 +29,7 @@ jobs:

- name: Run image
run: |
docker run --detach --env SECRET_KEY=insecure_secret_key --network host --env DATABASE_URL=postgres://postgres@localhost:5432/postgres ubuntu-com
docker run --detach --env SECRET_KEY=insecure_secret_key --network host --env DATABASE_URL=postgresql://postgres@localhost:5432/postgres ubuntu-com
sleep 1
curl --head --fail --retry-delay 1 --retry 30 --retry-connrefused http://localhost
Expand Down

0 comments on commit 6033566

Please sign in to comment.