Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp-nodemon watch doesn't work #12

Open
ghost opened this issue Nov 21, 2015 · 1 comment
Open

gulp-nodemon watch doesn't work #12

ghost opened this issue Nov 21, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 21, 2015

this is the code from the recipe:

return nodemon({
    script: './bin/www',
    env: { 'NODE_ENV': 'development' },
    watch: ['./app.js']
})

might be the fact that my script file is './bin/www'?
tried various options like '../app.js', '/app.js', dirname + '/app.js'
no luck though...
any idea? thanks

@vcostin
Copy link

vcostin commented Dec 23, 2015

Hi,
I used :

return nodemon({
  //nodemon our expressjs server
  script: 'app.js',
  //reload on specific file extension change
  ext: 'js ejs'
  //watch core server file(s) that require server restart on change
  //watch: ['app.js']
})

and it's working, ejs is my template engine, I hope this will help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant