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

[Gatsby docs refactor] Make dev command more easily tested #10786

Merged
merged 3 commits into from
Sep 25, 2017

Conversation

flarnie
Copy link
Contributor

@flarnie flarnie commented Sep 22, 2017

what is the change?:
If we want to test across different devices, we need to set the host
argument and tell Gatsby to listen on all ports.

why make this change?:
To be able to visit :8000 on another device and test the
docs.

test plan:
Manually tested

**what is the change?:**
If we want to test across different devices, we need to set the `host`
argument and tell Gatsby to listen on all ports.

**why make this change?:**
To be able to visit <my IP address>:8000 on another device and test the
docs.

**test plan:**
Manually tested
@reactjs-bot
Copy link

reactjs-bot commented Sep 22, 2017

Deploy preview ready!

Built with commit 585e0e1

https://deploy-preview-10786--reactjs.netlify.com

@joecritch
Copy link
Contributor

@flarnie I noticed there's also "yarn develop". Perhaps that should be changed to suit, as well? 🤔

@flarnie
Copy link
Contributor Author

flarnie commented Sep 23, 2017

Nice catch @joecritch ! Will fix.

good_catch_corgi

www/package.json Outdated
"lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .",
"test": "echo \"Error: no test specified\" && exit 1",
"develop": "gatsby develop",
"develop": "gatsby develop -H 0.0.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird that we have both of these. That was an accident on my part. Let's just remove develop 😄

@bvaughn bvaughn merged commit 6862d24 into facebook:gatsby Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants