Skip to content

Commit

Permalink
db host
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkasp committed Feb 20, 2024
1 parent 478465b commit 64e1cf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indabom/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

env = environ.Env()
env_file = os.path.join(BASE_DIR, '.env')
db_host_override = env.str("DB_HOST", None) # for cloud build, see comment below on DB_HOST
# db_host_override = env.str("DB_HOST", None) # for cloud build, see comment below on DB_HOST

# Attempt to load the Project ID into the environment, safely failing on error.
try:
Expand Down Expand Up @@ -71,7 +71,7 @@
# GS_BUCKET_NAME = env.str("GS_BUCKET_NAME", None) if not GS_BUCKET_NAME_INCLUDE_PROJECT else f'{project_id}_{env.str("GS_BUCKET_NAME", None)}'
GS_BUCKET_NAME = env.str("GS_BUCKET_NAME", None)
GS_DEFAULT_ACL = env.str("GS_DEFAULT_ACL", 'publicRead')
DB_HOST = env.str("DB_HOST") if db_host_override is not None else db_host_override # for cloud build to override db host due to private ip challenges
DB_HOST = env.str("DB_HOST") # if db_host_override is not None else db_host_override # for cloud build to override db host due to private ip challenges
DB_USER = env.str("DB_USER")
DB_PASSWORD = env.str("DB_PASSWORD")
DB_NAME = env.str("DB_NAME")
Expand Down

0 comments on commit 64e1cf6

Please sign in to comment.