Skip to content

Commit 2827df2

Browse files
author
Matthew Fisher
committed
fix(local_settings): infer database name from username
deis/postgres now creates the database name from the username. See https://github.com/deis/postgres/blob/master/rootfs/docker-entrypoint.sh#L62
1 parent 95796d7 commit 2827df2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rootfs/templates/local_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
with open('/var/run/secrets/deis/database/creds/password') as f:
1616
DATABASES['default']['PASSWORD'] = f.read().strip()
1717

18+
DATABASES['default']['NAME'] = DATABASES['default']['USER']
19+
1820
# scheduler settings
1921
SCHEDULER_MODULE = 'scheduler'
2022
SCHEDULER_URL = "https://{}:{}".format(

0 commit comments

Comments
 (0)