-
Notifications
You must be signed in to change notification settings - Fork 60
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
server not stopping before restart when editing Gruntfile.js #22
Comments
I'm not really sure yet, but I have to ask, why restart the server if the Gruntfile changes? |
I guess you're right... I could just live-reload the browser :) |
I'm having this issue when I'm editing my |
Wow, that's really odd! I was able to reproduce it, & trying to figure out why |
Apparently Trying an alternative now... |
Aha! Stupid Grunt being clever. I'm having to introduce |
Hi,
I have Grunt "watch" looking at some files and restarting Express if they get changed.
It all works seamlessly. For some weird reason though if the file edited is
Gruntfile.js
, grunt-express-server doesn't stop Express before relaunching when theexpress:dev
task is triggered by grunt-watch and obviously it generates anEADDRINUSE
error.This is my grunt-watch configuration:
And this is my grunt-express-server configuration:
The weird thing is that the problem ony happens with
Gruntfile.js
. If I modify, let's say,app.js
or one of the controllers, the task correctly stops Express before reloading it.Any thoughts?? Thanks!
The text was updated successfully, but these errors were encountered: