-
Notifications
You must be signed in to change notification settings - Fork 105
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
use default ports if empty/invalid (fixes #110) #111
Conversation
use default ports if empty/invalid (fixes #110)
Cool, I think this is alright since I've also been trying to find ways of using environment variables without relying on Unix-isms. |
Oh no, this introduces hard to debug bugs. E.g. "Why is my port 3000 if I'm passing a port variable?" Only after diving into For simple use cases it might not be a problem, for more integrated solutions (who know what people use this for) this will break and bite people. 👎 we should revert this. |
Hmm. I agree this can cause surprise down the line. Is there a way to do what @cvan is doing without relying on UNIX-only shell stuff? Maybe package.json config for env vars? |
I think the only reliable way of getting anything done on Windows is relying on libuv / Node itself. E.g. the solution posted about using JavaScript to work around this would be valid for Windows. Though it's clunky, it's reliable. Definitely better than swallowing errors. |
I expected it to work like |
That's a separate from this issue; arguably it would make sense that What's currently going on, however, is that instead of handling an error |
Ok, will revert this change back to how it was before. |
use default ports if empty/invalid (fixes #110)
my use case is wanting the port to not start at
9966
by defaultsee #110 (comment) and #110 (comment)
let me know if there's any way I can make this change kosher