Skip to content

Commit

Permalink
fix: throwing exeception on run
Browse files Browse the repository at this point in the history
Fixes #1276

Due to const being used.
  • Loading branch information
remy committed Feb 27, 2018
1 parent 7fb365d commit 85ed19d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function run(options) {
stdio = [process.stdin, process.stdout, process.stderr];
}

const sh = 'sh';
const shFlag = '-c';
var sh = 'sh';
var shFlag = '-c';

const binPath = process.cwd() + '/node_modules/.bin';

Expand Down

1 comment on commit 85ed19d

@tynorr
Copy link

@tynorr tynorr commented on 85ed19d Mar 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Remy,
I am start to learn about nodejs languange and I have some problem with nodemon ...
I install nodemon global with npm install nodemon -g and then I worked it my application with
nodemon app.js.
Everything is OK until here. But when I change my code in my app.js file, I always seeing it's restarting but it cannot start again... There has bug or Do I something wrong ?
I hope you can see it . Thanks.

`My app.js part of codes

  •   else if (req.url === '/contact') {
    
  •         res.writeHead(200, { 'Content-Type': 'text/html' });
    
  •         fs.createReadStream(__dirname + '/contact.html').pipe(res); //contact sayfası
    

    }
    `I was change it " contact-us " to " contact ".

`Terminal:

  • [nodemon] 1.17.1
  • [nodemon] to restart at any time, enter rs
  • [nodemon] watching: .
  • [nodemon] starting node app.js
  • Hey Blue, snow listening to port : 3000
  • request was made : /contact-us
  • [nodemon] restarting due to changes...
  • request was made : /contact

`

Please sign in to comment.