Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2019-1-OpenSourceSW
/
Probability Death
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
unknown
2018-12-01 20:25:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
94f3760e8826a50473755ff5780b1fd1cdfbb80f
94f3760e
1 parent
79335732
socket io settings to main app
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
app.js
app.js
View file @
94f3760
...
...
@@ -6,7 +6,9 @@ var logger = require('morgan');
var
indexRouter
=
require
(
'./routes/index'
);
var
usersRouter
=
require
(
'./routes/users'
);
var
app
=
express
();
var
app
=
express
(),
server
=
require
(
'http'
).
createServer
(
app
),
SOCKETIO
=
require
(
'./lib/socketio.js'
);
// view engine setup
app
.
set
(
'views'
,
path
.
join
(
__dirname
,
'views'
));
...
...
@@ -37,4 +39,7 @@ app.use(function(err, req, res, next) {
res
.
render
(
'error'
);
});
server
.
listen
(
80
);
SOCKETIO
(
server
,
app
);
module
.
exports
=
app
;
...
...
Please
register
or
login
to post a comment