-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add host option to serve on other than localhost #79
Conversation
6059ac5
to
a803cb9
Compare
I had thought that Would it make sense to just serve everything off of |
Interesting idea! What's your motivation? Do you want to serve on What value of ... No worries about the failing build. This thing is picky. I'll take a look later on tonight. |
@jedcn actually it is the opposite. I think the old default value was A value of Rails in development mode has you type |
The use case for me was to see if I can run reveal-ck in Docker. And to expose serve te the world outside the container, you need to set 0.0.0.0 as listen-address, so that anybody from outside the container can connect to reveal-ck. And yes, |
Okay, cool. I'm convinced. I'll either:
Should be out in a few days, the end of the coming weekend at the latest. Speak up if you need it sooner. Thanks for the PR @scornelissen85. Thanks for chiming in @kbrock. |
I re-used the commits from this PR and opened up #81. I added some administrative commits on top of yours. I'll do a bit of testing to make sure things are working as expected and we should be good to go. Once I merge #81 in, I'll close this one (#79) but your code and your authorship of it will still be used. Thanks! |
Pull #81 has been merged in and released. The released version is 3.5.0: https://rubygems.org/gems/reveal-ck Please check it out and see if it works for your use case: https://rubygems.org/gems/reveal-ck/versions/3.5.0 I'm going to shortly be releasing version 3.5.1 which will change around a bunch of gems. This could impact you-- that's why I released your requested change first. If you don't get around to testing for a few days, you'll grab version 3.5.1 and if that doesn't work (say, due to gems) please try explicitly using 3.5.0. I'm going to close this PR now. Thanks again. |
I wanted an option to do serve on a other IP-address that localhost. This change make it possible to add -h / --host option te set a different IP-adress the webserver will listen on.
I have made the change quite simple. My ruby knowledge is not great and I have not tested the change fully. I could not get the spec-test working and have not changed it. I tested that it was running on 0.0.0.0 when I run
reveal-ck serve -h 0.0.0.0
and it did. Also the banner is printing the current address specified by -h.