Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이승윤
/
OpenSource-MyCookBook
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이승윤
2021-05-28 18:38:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
73f8599a655cab2605c68a888863c25fd00ec8b2
73f8599a
1 parent
496cd02d
fix: 불필요 코드 제거 및 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
9 deletions
app.js
app.js
View file @
73f8599
...
...
@@ -19,7 +19,7 @@ db.on('error', console.error);
db
.
once
(
'open'
,
function
()
{
console
.
log
(
'mongo db Connection'
);
});
var
connect
=
mongoose
.
connect
(
'mongodb://127.0.0.1:27017/
cookBook
'
,
{
var
connect
=
mongoose
.
connect
(
'mongodb://127.0.0.1:27017/
test
'
,
{
useMongoClient
:
true
,
});
...
...
@@ -76,11 +76,3 @@ app.use('/auth', auth);
var
server
=
app
.
listen
(
port
,
function
()
{
console
.
log
(
'Express listening on port'
,
port
);
});
var
listen
=
require
(
'socket.io'
);
var
io
=
listen
(
server
);
//socket io passport 접근하기 위한 미들웨어 적용
io
.
use
(
function
(
socket
,
next
)
{
sessionMiddleWare
(
socket
.
request
,
socket
.
request
.
res
,
next
);
});
require
(
'./libs/socketConnection'
)(
io
);
...
...
Please
register
or
login
to post a comment