Sửa lỗi tạo docker
This commit is contained in:
@@ -2,9 +2,6 @@ const mongoose = require('mongoose');
|
||||
const path = require('path');
|
||||
const dotenv = require('dotenv');
|
||||
|
||||
// Tự động tìm và nạp file .env nằm cùng thư mục với folder config (tức là trong backend/.env)
|
||||
dotenv.config({ path: path.join(__dirname, '../.env') });
|
||||
|
||||
const connectDB = async () => {
|
||||
try {
|
||||
const dbURI = process.env.MONGODB_URI;
|
||||
|
||||
Reference in New Issue
Block a user