Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Aug 26, 2022
2 parents c4cf02a + 3a449f4 commit 10dc158
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gene/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ def __init__(self, db_url: str = '', region_name: str = 'us-east-2'):
# EB Instance should not have to confirm.
# This is used only for updating production via CLI
confirm_aws_db_use("PROD")
else:
if 'EB_ENV_TYPE' in environ and environ['EB_ENV_TYPE'] != 'prod':
gene_concepts_table = "gene_concepts_nonprod"
gene_metadata_table = "gene_metadata_nonprod"
elif "GENE_NORM_NONPROD" in environ:
# This is a nonprod table. Only to be used for creating backups which
# This is a nonprod table. Used for creating backups which
# prod will restore. Will need to manually delete / create this table
# on an as needed basis.
gene_concepts_table = "gene_concepts_nonprod"
Expand Down

0 comments on commit 10dc158

Please sign in to comment.