-
Notifications
You must be signed in to change notification settings - Fork 41
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 reload works first time, but not subsequent times #37
Comments
Furthermore, it appears that livereload doesn't work when |
Perhaps this is related to #36. Note that I'm having troubles on OSX. My server is a single JS file in |
I'm having the same issue where the server reload does not stop the server running so it puts it on the next open port. The connect 3.0 messages are coming from express. The express 4.x doc states "As of 4.x, Express no longer depends on Connect. All of Express' previously included middleware are now in separate repos. Please view the list of middleware. The only included middleware is now express.static()." I may just run my express app in node and grunt live reload until this issue is resolved. This is very promising though. |
I'm having the same problem here. First reload works then next port is assigned. Reload works then next ports is assigned... |
Same here. This needs to be fixed, otherwise developments is just pain. |
It seems the problem is with I upgraded to the latest version of |
Try using the task called 'express-restart' |
The behavior I'm getting is such that live-reloading doesn't work on the front-end UNLESS you reload the server first. livereload and serverreload is set to true. SCENARIO 1:
SCENARIO 2
Do your suggestions resolve these issues? Thanks! |
I have the following Gruntfile config:
Running
grunt foo
, and then hitting an endpoint, produces the following output:Next I change the server code to output
post dataXYZ
and save the file, wait a few seconds, then hit the endpoint again. The following is output:That works perfectly! So I edit the
server/index.js
file again, changing it to saypost data
, save, wait a few seconds, then hit the endpoint again. Now I get this:As you can see, it complains that port 9000 is in use, so it starts up a new server on port 9001. However, hitting the endpoint on either 9000 or 9001 both output
post dataXYZ
instead ofpost data
.Also, note there are a lot of deprecation messages regarding connect 3.0.
The text was updated successfully, but these errors were encountered: