提交 7db6ec2f 编写于 作者: P Piotr Bryk

Merge pull request #67 from kubernetes/fix-stdio-inherit

Fix stdio:inherit option for building go code
...@@ -34,7 +34,8 @@ export default function spawnGoProcess(args, doneFn) { ...@@ -34,7 +34,8 @@ export default function spawnGoProcess(args, doneFn) {
let goTask = child.spawn('godep', ['go'].concat(args), { let goTask = child.spawn('godep', ['go'].concat(args), {
env: env, env: env,
}, {stdio: 'inherit'}); stdio: 'inherit',
});
// Call Gulp callback on task exit. This has to be done to make Gulp dependency management // Call Gulp callback on task exit. This has to be done to make Gulp dependency management
// work. // work.
......
...@@ -120,7 +120,8 @@ gulp.task('serve:prod', ['build-frontend'], function () { ...@@ -120,7 +120,8 @@ gulp.task('serve:prod', ['build-frontend'], function () {
gulp.task('spawn-backend', ['backend', 'kill-backend'], function () { gulp.task('spawn-backend', ['backend', 'kill-backend'], function () {
runningBackendProcess = child.spawn( runningBackendProcess = child.spawn(
path.join(conf.paths.serve, conf.backend.binaryName), path.join(conf.paths.serve, conf.backend.binaryName),
[`--port=${conf.backend.devServerPort}`], {stdio: 'inherit'}); [`--port=${conf.backend.devServerPort}`],
{stdio: 'inherit'});
runningBackendProcess.on('exit', function() { runningBackendProcess.on('exit', function() {
// Mark that there is no backend process running anymore. // Mark that there is no backend process running anymore.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册