diff --git a/backend/src/index.ts b/backend/src/index.ts index e7b25ea..c1eff80 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -24,7 +24,7 @@ let db: any; async function connectToDatabase() { try { - // Ensure database directory exists with proper permissions + // Database file will be in the app directory const dbPath = path.join(__dirname, '../database.sqlite'); db = await open({ diff --git a/docker-compose.yml b/docker-compose.yml index 7185219..78eedfb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: ports: - "3000:3000" volumes: - - data:/app/database.sqlite + - data:/app - uploads:/app/uploads environment: - NODE_ENV=development