-
Notifications
You must be signed in to change notification settings - Fork 20
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
handle windows platform #23
Conversation
The only thing would be: the version of windows it runs on need to support the command taskkill |
It's promising. I cannot believe there's no gem that handles processes cross-platform though? Start by fixing the *nix build either way. |
@dblock spoon does handle windows. But the unfortunate problem is how cmd.exe handles .bat files. It won't let you interrupt it without the user input "Terminate batch job (Y/N)?" Which is the root of the problem. There might be another way to interrupt the process...I'll look into it as well |
An alternative i was trying that wouldn't need such a big change in the runner was to run rackup not from a batch but straight off the .rb file (taken from this blog) Unfortunately that didn't work or i couldn't get it to work. Still ended up with this:
So this still looks to be the best way I've found. |
I am cool with merging this. It needs an entry in CHANGELOG, please. If you have time though, and want to make things cleaner, refactor the nix/win parts into a |
Squash your commits, too. |
@@ -1,7 +1,7 @@ | |||
2.2.0 (Next) | |||
2.2.0 (04/13/2016) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this back please, Next, you're not making a release.
I like it! Just amend changelog please, and you should edit the commit message in the commit here to say what this really does, aka support Windows. |
Looks good, merging. |
I've cut a release, 2.2.0. |
I believe this might solve #22
Instead of using process, I can just send a shell command to do the job.
Althought its not async like Process but it is a workaround.