erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12.01k stars 2.5k forks source link

Please don't suppress repeated errors. Makes it difficult to debug. #1188

Open cheapsteak opened 8 years ago

cheapsteak commented 8 years ago

further repeats of this error will be suppressed

I wish there were a way to turn this off, it makes it much more annoying to tell whether a debug attempt was successful

SuigetsuSake commented 8 years ago

This repo uses piping to watch the files and restart the server if needed. At first glance i didn't see any option allowing to change this behavior but you may find a way or ask them.

The piping initialization is done in bin/server.js , this is where you may want to add some configurations.

chosenvictim commented 8 years ago

Any update on this ?

margaretmoser commented 8 years ago

@shek8034, @SuigetsuSake is correct: You can turn it off by adding one line to bin/server.js and/or bin/api.js where piping is initialized.

[...]
if (process.env.NODE_ENV !== 'production') {
  if (!require('piping')({
    hook: true,
    ignore: [whatever]
    respawnOnExit: false                      <------------ add this
  })) {
    return;
  }
}
[...]