|
|
@ -4,7 +4,8 @@ var modules = {
|
|
|
|
posts: require('./src/posts.js'),
|
|
|
|
posts: require('./src/posts.js'),
|
|
|
|
templates: require('./src/templates.js'),
|
|
|
|
templates: require('./src/templates.js'),
|
|
|
|
webserver: require('./src/webserver.js'),
|
|
|
|
webserver: require('./src/webserver.js'),
|
|
|
|
websockets: require('./src/websockets.js')
|
|
|
|
websockets: require('./src/websockets.js'),
|
|
|
|
|
|
|
|
fs: require('fs')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DEVELOPMENT = true;
|
|
|
|
DEVELOPMENT = true;
|
|
|
@ -13,9 +14,6 @@ var modules = {
|
|
|
|
global.configuration = {};
|
|
|
|
global.configuration = {};
|
|
|
|
global.modules = modules;
|
|
|
|
global.modules = modules;
|
|
|
|
|
|
|
|
|
|
|
|
// change this to = null when auth module is complete
|
|
|
|
|
|
|
|
// global.uid = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
process.on('uncaughtException', function(err) {
|
|
|
|
process.on('uncaughtException', function(err) {
|
|
|
|
// handle the error safely
|
|
|
|
// handle the error safely
|
|
|
@ -28,7 +26,6 @@ process.on('uncaughtException', function(err) {
|
|
|
|
config['ROOT_DIRECTORY'] = __dirname;
|
|
|
|
config['ROOT_DIRECTORY'] = __dirname;
|
|
|
|
|
|
|
|
|
|
|
|
modules.templates.init();
|
|
|
|
modules.templates.init();
|
|
|
|
// modules.webserver.init();
|
|
|
|
|
|
|
|
modules.websockets.init();
|
|
|
|
modules.websockets.init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|