d99a299bf5
- Fix MinIO service temp directory path (was going to /temp instead of /app/temp) - Add TEMP_DIR environment variable support - Make audit logger optional in development mode to avoid permission issues - Ensure log directory exists before creating loggers - Update docker-entrypoint.sh to create temp directory - Create backend/temp directory with .gitkeep - Update .gitignore to exclude temp files but keep directory structure This fixes the EACCES permission errors that were causing the backend to restart. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
263 B
Bash
Executable File
15 lines
263 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Ensure logs directory exists with correct permissions
|
|
if [ ! -d "/app/logs" ]; then
|
|
mkdir -p /app/logs
|
|
fi
|
|
|
|
# Ensure temp directory exists
|
|
if [ ! -d "/app/temp" ]; then
|
|
mkdir -p /app/temp
|
|
fi
|
|
|
|
# Start the application
|
|
exec node src/app.js |