Skip to content

Commit

Permalink
Merge pull request #93 from GSA-TTS/jim/postgres
Browse files Browse the repository at this point in the history
DATABASE_URL from config
  • Loading branch information
jimmoffet authored Sep 22, 2024
2 parents 5b19696 + d9cc499 commit 4c033ed
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 4c033ed

Please sign in to comment.