aripbae commited on
Commit
f1639ae
·
verified ·
1 Parent(s): 8a56370

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -1
index.js CHANGED
@@ -135,10 +135,12 @@ app.get(
135
  { FORCE_COLOR: '0' }
136
  ),
137
  shell: true,
138
- stdio: ['ignore', log, log]
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
  )