mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Add support for a configuration file.
This commit is contained in:
parent
6794f0ab03
commit
f21fd968fd
9 changed files with 51 additions and 82 deletions
|
|
@ -194,11 +194,7 @@ app.add_routes([
|
|||
|
||||
async def run():
|
||||
app["pool"] = await db.connect(
|
||||
os.environ["DATABASE_USER"],
|
||||
os.environ["DATABASE_PASS"],
|
||||
os.environ["DATABASE_NAME"],
|
||||
os.environ["DATABASE_HOST"],
|
||||
int(os.environ["DATABASE_PORT"])
|
||||
os.environ["DATABASE_URI"]
|
||||
)
|
||||
return app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue