Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[ux] Better logging output from apps started with jitsu install

  • Loading branch information...
commit 2b84bca2bb0640250c4525f559072ad305e08631 1 parent 195c112
@Marak Marak authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/jitsu/commands/install.js
View
10 lib/jitsu/commands/install.js
@@ -163,15 +163,19 @@ var install = module.exports = function (starterName, callback) {
// in the scripts.start property containing the word "node" in it
//
var pkg = JSON.parse(fs.readFileSync(process.cwd() + '/package.json').toString());
+
+ winston.warn(('Outputting logs from: ' + starterName));
+ console.log('\n');
+
app = spawn('node', [pkg.scripts.start]);
app.stdout.on('data', function (data) {
- winston.data(data);
+ console.log(data.toString());
});
app.stderr.on('data', function (data) {
- winston.error(data);
+ console.log(data.toString());
});
app.on('exit', function (code) {
- winston.data('Application exited ', code);
+ console.log('Application exited ', code);
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.