Change settings.py and config.json to use an external PostgresDB

This commit is contained in:
Tony Hendrick
2020-05-12 15:08:01 -07:00
parent 545740659c
commit 245f3d09a8
2 changed files with 3 additions and 1 deletions

2
config.json vendored
View File

@@ -1 +1 @@
{"TITLE": "pyShelf E-Book Server", "VERSION": "0.5.0", "BOOKPATH": "", "DB_HOST": "localhost", "DB_PORT": "5432", "DATABASE": "pyshelf", "USER": "pyshelf", "PASSWORD": "pyshelf", "BOOKSHELF": "data/shelf.json", "ALLOWED_HOSTS": "*", "hostname": "localhost", "webport": "8000", "wsgiport": "8001"}
{"TITLE": "pyShelf E-Book Server", "VERSION": "0.5.0", "BOOKPATH": "", "DB_HOST": "db", "DB_PORT": "5432", "DATABASE": "pyshelf", "USER": "pyshelf", "PASSWORD": "mysecretpassword", "BOOKSHELF": "data/shelf.json", "ALLOWED_HOSTS": "*", "hostname": "localhost", "webport": "8000", "wsgiport": "8001"}

View File

@@ -99,6 +99,8 @@ DATABASES = {
"NAME": CONFIG.catalogue_db,
"USER": "pyshelf",
"PASSWORD": CONFIG.password,
"HOST": CONFIG.db_host,
"PORT": CONFIG.db_port,
}
}