[GH-ISSUE #281] Migrate process.env settings into DB records #165

Closed
opened 2026-02-22 18:18:10 -05:00 by yindo · 1 comment
Owner

Originally created by @timothycarambat on GitHub (Oct 21, 2023).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/281

Originally assigned to: @shatfield4 on GitHub.

Due to complexities running Docker and needing to dump and load a .env to persist settings and keys between restarts, we can now finally move this data into the DB for persistence & visibility.

Originally created by @timothycarambat on GitHub (Oct 21, 2023). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/281 Originally assigned to: @shatfield4 on GitHub. Due to complexities running Docker and needing to dump and load a `.env` to persist settings and keys between restarts, we can now finally move this data into the DB for persistence & visibility.
yindo closed this issue 2026-02-22 18:18:10 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 23, 2023):

On boot, we load in the relevant ENV and will insert the discovered settings or defaults into the SystemSettings.

This should be done in a single insert query and on subsequent boots should not overwrite the settings if its exists. We then need to migrate all other process.env references to use the DB setting or a fallback default if the DB fails to load.

@timothycarambat commented on GitHub (Oct 23, 2023): On boot, we load in the relevant ENV and will insert the discovered settings **or** defaults into the `SystemSettings`. This should be done in a single insert query and on subsequent boots should not overwrite the settings if its exists. We then need to migrate all other process.env references to use the DB setting or a fallback default if the DB fails to load.
yindo changed title from Migrate `process.env` settings into DB records to [GH-ISSUE #281] Migrate `process.env` settings into DB records 2026-06-05 14:33:49 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#165