Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
namespace env-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
csweaver committed Aug 13, 2018
1 parent bd43b69 commit ad6017e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions database/BuildDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import json

database = {
'pg_user': os.environ['PG_USERNAME'],
'pg_pass': os.environ['PG_PASSWORD'],
'pg_host': os.environ.get('PG_HOST', 'localhost'),
'pg_port': os.environ.get('PG_PORT', 5432),
'pg_database': os.environ.get('PG_DATABASE', 'scoreboard')
'pg_user': os.environ['SCOREBOARD_PG_USERNAME'],
'pg_pass': os.environ['SCOREBOARD_PG_PASSWORD'],
'pg_host': os.environ.get('SCOREBOARD_PG_HOST', 'localhost'),
'pg_port': os.environ.get('SCOREBOARD_PG_PORT', 5432),
'pg_database': os.environ.get('SCOREBOARD_PG_DATABASE', 'scoreboard')
}


Expand Down

0 comments on commit ad6017e

Please sign in to comment.