mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
add file transport
This commit is contained in:
@@ -12,6 +12,16 @@ var winston = require('winston'),
|
|||||||
app = express(),
|
app = express(),
|
||||||
server;
|
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 = {},
|
var web = {},
|
||||||
scripts = [
|
scripts = [
|
||||||
'public/vendor/xregexp/xregexp.js',
|
'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'], {
|
var child = require('child_process').fork('app', ['--setup'], {
|
||||||
env: process.env
|
env: process.env
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user