Skip to content

Commit

Permalink
fix command proxying closes #247 #136 #227
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbutler committed Jan 12, 2017
1 parent e462e3d commit df1d053
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.7.0 / 2017-1-12
==================
* fix command proxying (debug, shell, mongo, etc)

1.6.1 / 2017-1-4
==================
* add method for meteor npm install
Expand Down
11 changes: 2 additions & 9 deletions lib/tools/meteor.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,8 @@ module.exports.invokeMeteorCommand = function invokeMeteorCommand(cmd, args) {

var child = spawn(meteor, [cmd].concat(args), {
cwd: this.findAppDirectory(),
env: process.env
});

child.stdout.on('data', function stdout(data) {
console.log(data.toString());
});

child.stderr.on('data', function stderr(data) {
console.error(data.toString());
env: process.env,
stdio: 'inherit' // REQUIRED to proxy input to meteor
});

_.each(['SIGINT', 'SIGHUP', 'SIGTERM'], function (sig) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-meteor",
"version": "1.6.1",
"version": "1.7.0",
"description": "A command line tool for scaffolding Meteor applications.",
"homepage": "https://github.com/iron-meteor/iron-cli",
"bugs": {
Expand Down

0 comments on commit df1d053

Please sign in to comment.