mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-11 12:04:24 +01:00
🪵 fix: Standardize Logging Directory with Environment-Aware Resolution (#11000)
* refactor: Implement getLogDir function to set log directory based on environment variables and execution context (Docker or local) * fix: Adjust Dockerfile to create the correct log directory path for consistency
This commit is contained in:
parent
a0df7e8df1
commit
b4459ab564
3 changed files with 57 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ RUN \
|
|||
# Allow mounting of these files, which have no default
|
||||
touch .env ; \
|
||||
# Create directories for the volumes to inherit the correct permissions
|
||||
mkdir -p /app/client/public/images /app/api/logs /app/uploads ; \
|
||||
mkdir -p /app/client/public/images /app/logs /app/uploads ; \
|
||||
npm config set fetch-retry-maxtimeout 600000 ; \
|
||||
npm config set fetch-retries 5 ; \
|
||||
npm config set fetch-retry-mintimeout 15000 ; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue