-
Notifications
You must be signed in to change notification settings - Fork 1k
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 host configuration provided in redwood configuration file (so that VM/container users can set it to "0.0.0.0") #216
Use host configuration provided in redwood configuration file (so that VM/container users can set it to "0.0.0.0") #216
Conversation
Thanks for this, could you add this to the types over here: redwood/packages/internal/src/types.ts Lines 1 to 12 in fa396e0
It would be great if we didn't have to specify this in |
sure thing. |
Instead of hardcoding/assuming development host to be `localhost`, make it configurable so that redwood servers being run inside a container/VM can still be accessed setting host to "0.0.0.0"
I've gone for the minimum code changes possible here. (instead of defining intermediate vars etc.) I don't have a way to test it now, but can do it tomorrow. Let me know if you had something else in mind. |
This is awesome, thank you @suvash ! |
@suvash @peterp Quick glance at this —> looks like the doc could use some updating+tlc with info about this change, correct? https://github.com/redwoodjs/redwood/blob/master/docs/redwood.toml.md If so, possible to get some help? And/or open a new issue and assign it to me fine as well. |
@thedavidprice @peterp Updated the docs at #228 |
…gure-host Use host configuration provided in redwood configuration file.
I don't have a vagrant/virtualbox setup right now, and I see you have it resolved, so I won't dig into this further. 👍 |
@suvash Yep, thanks! |
Instead of hardcoding/assuming development host to be
localhost
,make it configurable so that redwood servers being run inside a
container/VM can still be accessed setting host to "0.0.0.0"
The accompanying PR for create-redwood-app is at : redwoodjs/create-redwood-app#32