mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
add file transport
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user