업데이ㅡ

This commit is contained in:
익희 김 2024-12-10 14:58:21 +09:00
parent 8a960d38dc
commit 7c5eb17d93
2 changed files with 3 additions and 2 deletions

3
.env
View File

@ -1,4 +1,5 @@
MONGODB_URI="mongodb://101.79.10.128:27017/local"
# MONGODB_URI="mongodb://101.79.10.128:27017/local"
MONGODB_URI="mongodb://siinand:Qlenfrl1199424!@101.79.10.128:27017/local"
# MONGODB_URI="mongodb://localhost:27017/local"
PORT=5100
# RECEIVING_EMAIL=

View File

@ -26,7 +26,7 @@ const io = new Server(httpServer, {
// MongoDB 연결
mongoose
.connect(process.env.MONGODB_URI)
.connect('mongodb://siinand:Qlenfrl1199424%21@101.79.10.128:27017/admin?authSource=admin')
.then(() => console.log('MongoDB connected successfully'))
.catch((error) => console.error('Error connecting to MongoDB:', error));