Update index.js
Browse files
index.js
CHANGED
|
@@ -135,10 +135,12 @@ app.get(
|
|
| 135 |
{ FORCE_COLOR: '0' }
|
| 136 |
),
|
| 137 |
shell: true,
|
| 138 |
-
stdio: ['ignore',
|
| 139 |
}
|
| 140 |
)
|
| 141 |
child.unref()
|
|
|
|
|
|
|
| 142 |
res.redirect(file)
|
| 143 |
}
|
| 144 |
)
|
|
|
|
| 135 |
{ FORCE_COLOR: '0' }
|
| 136 |
),
|
| 137 |
shell: true,
|
| 138 |
+
stdio: ['ignore', 'pipe', 'pipe']
|
| 139 |
}
|
| 140 |
)
|
| 141 |
child.unref()
|
| 142 |
+
child.stderr.pipe(file)
|
| 143 |
+
child.stdout.pipe(file)
|
| 144 |
res.redirect(file)
|
| 145 |
}
|
| 146 |
)
|