-
Notifications
You must be signed in to change notification settings - Fork 145
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
Allow ability to stop server. #83
Comments
Just a heads up with keeping the servers in a cache, it will only work with watch with |
Man, i REALLY wish |
@shama have you thought about using the |
I'm fine switching the default to I'm open to trying |
@shama it is rewritten in 0.12, so might be more stable now, dunno. isn't the whole point of the vm module that they don't share context? |
Grunt is still |
The best solution, IMO, is to pull out the task running parts of Grunt and just have the watch use that rather than it's own wrapper around the current system. |
Another use case for this, if I am reading it right, is that you can have the server restart when changes are made to the Gruntfile. Watch can trigger the server to stop and then restart with the newly loaded Gruntfile. Unless you can do this already and I am in the dark about it. |
This can be done, currently the server just needs to provide a way to halt itself rather than storing variables within a single process context. FWIW, the watch in grunt-next doesn't spawn by default. |
I'm running parameterised tests and the inability to stop a Ideally we could have something like |
Broadcasting an event as a part of done so that we could enqueue the next task only once the server had stopped would work also I think. (for my use case at least - I want to run a set of e2e tests in angular and restart the server with new config each time). Edit actually because of the way that grunt is treating the async task this won't work 👎 |
👍 |
I need to be able to stop the server too. It seems that the pull request never made it. Any workaround? |
This issue is still opened? Any current solution on that? |
I could use a feature like that too. |
I have this... So how do I disconnect each time before connecting? |
I'd like to add the ability to stop a currently-running server. I propose that:
stop
flag is specified and a server with the same target has been started, it will be stopped and removed from the cacheAdditionally, I'd like to consider this:
My use-case:
Let's say I need to run my dev server when I do my integration tests:
And let's say both my
dev
andprod
server use the same port, but have otherwise different configuration.What happens when I want to run my integration tests before doing my production build, which includes starting the
prod
web server?Because I haven't stopped the dev server (because I can't) at the end of
test-integration
, theprod
server can't run because the port is already in use. And it's not practical to change the port between the two just to work around this issue.Thoughts?
The text was updated successfully, but these errors were encountered: