change development storage path to <repo>/anythingllm-files

This commit is contained in:
angelplusultra
2026-03-20 09:52:25 -07:00
parent cca045f20e
commit 258e1b8d33
2 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@@ -10,3 +10,4 @@ aws_cf_deploy_anything_llm.json
yarn.lock
*.bak
.idea
anythingllm-files

View File

@@ -10,11 +10,12 @@ const { isWithin, hotdirPath } = require("../../../files");
const execFileAsync = promisify(execFile);
// In development files live under server/storage; in production they're
// mounted at /anythingllm-files via Docker volume.
// Bind-mounted host directory for file search.
// In production (Docker) this is mounted at /anythingllm-files.
// In development it lives at the project root: <repo>/anythingllm-files.
const FILE_SEARCH_PATH =
process.env.NODE_ENV === "development"
? path.resolve(__dirname, "../../../../storage/anythingllm-files")
? path.resolve(__dirname, "../../../../../anythingllm-files")
: "/anythingllm-files";
// const MAX_SEARCH_DEPTH = 5;
const MAX_SEARCH_RESULTS = 10000;