feat: additional option to provide other host for upgrader
This commit is contained in:
parent
9a2e8ebb46
commit
4ce94e4977
1 changed files with 2 additions and 1 deletions
|
|
@ -4,8 +4,9 @@ from dotenv import load_dotenv
|
|||
|
||||
load_dotenv()
|
||||
|
||||
host = os.getenv('DB_HOST_UPGRADE') if os.getenv('DB_HOST_UPGRADE') else os.getenv('DB_UPGRADE')
|
||||
conn = psycopg2.connect(
|
||||
host=os.getenv('DB_HOST'),
|
||||
host=host,
|
||||
database=os.getenv('DB_NAME'),
|
||||
user=os.getenv('DB_USER'),
|
||||
password=os.getenv('DB_PASSWORD'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue