Skip to content

Commit

Permalink
db url fix for each env
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwan-samarasinghe committed Sep 18, 2024
1 parent 8a8e05d commit 75d0afa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/envs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class DefaultConfig(object):
FAB_SAVE_PER_PAGE = getenv("FAB_SAVE_PER_PAGE", "dev/save")
FORM_RUNNER_URL = getenv("FORM_RUNNER_INTERNAL_HOST", "http://form-runner:3009")
FORM_RUNNER_URL_REDIRECT = getenv("FORM_RUNNER_EXTERNAL_HOST", "http://localhost:3009")
SQLALCHEMY_DATABASE_URI = environ.get("DATABASE_URL").replace("postgres://", "postgresql://")
SQLALCHEMY_DATABASE_URI = environ.get("DATABASE_URL")
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Outputs:
Description: "The URL of this database."
Value:
!Sub
- "postgres://${USERNAME}:${PASSWORD}@${HOSTNAME}:${PORT}/${DBNAME}"
- "postgresql://${USERNAME}:${PASSWORD}@${HOSTNAME}:${PORT}/${DBNAME}"
- USERNAME: !Join [ "", [ '{{resolve:secretsmanager:', !Ref fsdfundapplicationbuilderclusterAuroraSecret, ":SecretString:username}}" ]] # pragma: allowlist secret
PASSWORD: !Join [ "", [ '{{resolve:secretsmanager:', !Ref fsdfundapplicationbuilderclusterAuroraSecret, ":SecretString:password}}" ]] # pragma: allowlist secret
HOSTNAME: !Join [ "", [ '{{resolve:secretsmanager:', !Ref fsdfundapplicationbuilderclusterAuroraSecret, ":SecretString:host}}" ]] # pragma: allowlist secret
Expand Down

0 comments on commit 75d0afa

Please sign in to comment.