Skip to content
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

Don't work if Debug server host is setted: websocket: connection error", "Failed to connect to localhost/127.0.0.1:7007 #861

Closed
shilman opened this issue Apr 15, 2017 · 1 comment

Comments

@shilman
Copy link
Member

shilman commented Apr 15, 2017

Issue by linonetwo
Saturday Dec 17, 2016 at 07:06 GMT
Originally opened as storybook-eol/react-native-storybook#116


I use wifi to sent bundle, in Dev settings, I set Debug server host to 10.0.0.90:8081, and bundle was sent. But socket seems still try to connecting 127.0.0.1:7007.

I think socket should read Dev setting, and try to connect 10.0.0.90:7007 if I have set it.

Seems running "storybook start -h 10.0.0.90 -p 7007" can't help.

@shilman
Copy link
Member Author

shilman commented Apr 15, 2017

Comment by linonetwo
Saturday Dec 17, 2016 at 07:20 GMT


Ok, seems using:

const StorybookUI = getStorybookUI({port: 7007, host: '10.0.0.90'});

can do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant