Skip to content

Commit

Permalink
Fix name of db URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Apr 21, 2021
1 parent 27bc1c7 commit 9268d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env-dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SECRET_KEY="some thing something"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
FLASK_APP=jazzband/app.py
DATABASE_URL=postgres://postgres@db/postgres
DATABASE_URL=postgresql://postgres@db/postgres
REDIS_URL=redis://redis:6379/0
DEBUG=true
MAIL_SERVER=email
Expand Down
2 changes: 1 addition & 1 deletion jazzband/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
PERMANENT_SESSION_LIFETIME = timedelta(days=14)
USE_SESSION_FOR_NEXT = True

SQLALCHEMY_DATABASE_URI = config("DATABASE_URL", "postgres://postgres@db/postgres")
SQLALCHEMY_DATABASE_URI = config("DATABASE_URL", "postgresql://postgres@db/postgres")
if IS_PRODUCTION:
SQLALCHEMY_DATABASE_URI += "?sslmode=require"
VALIDATE_IP = config("GITHUB_VALIDATE_IP", True, cast=bool)
Expand Down

0 comments on commit 9268d46

Please sign in to comment.