Skip to content

Node.js based forum software built for the modern web

add file transport

barisusaklid402737a7531
diff --git a/install/web.js b/install/web.js
index 557fcef862..7d2cfad21a 100644
--- a/install/web.js
+++ b/install/web.js
@@ -12,6 +12,16 @@ var winston = require('winston'),
app = express(),
server;
+winston.add(winston.transports.File, {
+ filename: 'logs/webinstall.log',
+ colorize: true,
+ timestamp: function() {
+ var date = new Date();
+ return date.getDate() + '/' + (date.getMonth() + 1) + ' ' + date.toTimeString().substr(0,5) + ' [' + global.process.pid + ']';
+ },
+ level: 'verbose'
+});
+
var web = {},
scripts = [
'public/vendor/xregexp/xregexp.js',
@@ -78,8 +88,6 @@ function install(req, res) {
}
}
- winston.info('running nodebb setup with env ', process.env);
-
var child = require('child_process').fork('app', ['--setup'], {
env: process.env
});