copilot: docker optimize.
Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled
Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled
This commit is contained in:
@@ -2,7 +2,7 @@ const path = require('path');
|
||||
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const JWT_SECRET = process.env.JWT_SECRET || 'your-secret-key-change-in-production';
|
||||
const DB_PATH = process.env.DB_PATH || path.join(__dirname, '..', 'data.db');
|
||||
const DB_PATH = process.env.DB_PATH || path.join(__dirname, '..', 'data', 'data.db');
|
||||
|
||||
module.exports = {
|
||||
PORT,
|
||||
|
||||
@@ -3,7 +3,7 @@ const { DB_PATH } = require('./config');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// Ensure the directory exists
|
||||
// Ensure the directory exists with proper permissions
|
||||
const dbDir = path.dirname(DB_PATH);
|
||||
if (!fs.existsSync(dbDir)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user