mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 14:42:10 +02:00
Merge branch 'master' of https://github.com/psychobunny/node-forum
This commit is contained in:
15
.gitignore
vendored
15
.gitignore
vendored
@@ -1,7 +1,8 @@
|
||||
#################
|
||||
## npm
|
||||
#################
|
||||
|
||||
npm-debug.log
|
||||
node_modules/
|
||||
sftp-config.json
|
||||
#################
|
||||
## npm
|
||||
#################
|
||||
|
||||
npm-debug.log
|
||||
node_modules/
|
||||
sftp-config.json
|
||||
public/config.json
|
||||
|
||||
6
public/config.default.json
Normal file
6
public/config.default.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"socket" : {
|
||||
"address" : "localhost",
|
||||
"port" : "4567"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"socket" : {
|
||||
"address" : "198.199.80.41",
|
||||
"port" : "8081"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
var express = require('express'),
|
||||
WebServer = express(),
|
||||
server = require('http').createServer(WebServer),
|
||||
connect = require('connect'),
|
||||
config = require('../config.js'),
|
||||
WebServer = express();
|
||||
config = require('../config.js');
|
||||
|
||||
(function(app) {
|
||||
var templates = global.templates;
|
||||
@@ -38,8 +39,9 @@ var express = require('express'),
|
||||
app.use(express.static(global.configuration.ROOT_DIRECTORY + '/public'));
|
||||
app.set('mailOptions', config.mailer);
|
||||
});
|
||||
|
||||
app.listen(config.port);
|
||||
}
|
||||
|
||||
}(WebServer));
|
||||
|
||||
server.listen(config.port);
|
||||
global.server = server;
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
var SocketIO = require('socket.io').listen(8081);
|
||||
var SocketIO = require('socket.io').listen(global.server);
|
||||
|
||||
|
||||
(function(io) {
|
||||
|
||||
Reference in New Issue
Block a user