Skip to content

Commit

Permalink
DATABASE_URL from config
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmoffet committed Sep 22, 2024
1 parent 5f531ba commit d9cc499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# TODOs

- Need initial (Type a message down there 👇 to get started) message for new users
- Workspace > documents needs a spinner when processing docs
- existing tags should be selectable when adding to docs
- Chroma is kept in ram... need to swap for redis
Expand Down
4 changes: 2 additions & 2 deletions backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,5 +1176,5 @@ class BannerModel(BaseModel):
"DATABASE_URL", None
):
os.environ["DATABASE_URL"] = vcap_services["aws-rds"][0]["credentials"]["uri"]
else:
DATABASE_URL = os.environ.get("DATABASE_URL", f"sqlite:///{DATA_DIR}/webui.db")

DATABASE_URL = os.environ.get("DATABASE_URL", f"sqlite:///{DATA_DIR}/webui.db")

0 comments on commit d9cc499

Please sign in to comment.