gatsby new tutorial-part-one https://github.com/gatsbyjs/gatsby-starter-hello-world
cd tutorial-part-one && gatsby develop
index.js
in src/pages/
and save the file. $ src/pages/
index.js
๋ฅผ ์์ ํ๊ณ ํ์ผ์ ์ ์ฅํฉ๋๋ค.Gatsby's development server should hot reload in the browser and reflect changes made in src/pages/index.js
. Gatsby์ ๊ฐ๋ฐ ์๋ฒ๋ ๋ธ๋ผ์ฐ์ ์์ ํซ ๋ฆฌ๋ก๋๋์ด์ผ ํ๊ณ src/pages/index.js
์ ๋ณ๊ฒฝ ์ฌํญ์ ๋ฐ์ํด์ผ ํฉ๋๋ค. The view must be as below: ๋ณด๊ธฐ๋ ๋ค์๊ณผ ๊ฐ์์ผ ํฉ๋๋ค.
No hot reloading in the browser. ๋ธ๋ผ์ฐ์ ์์ ํซ ๋ฆฌ๋ก๋ฉ์ด ์์ต๋๋ค.
It works for me when I start the server with gatsby develop --host localhost
. gatsby develop --host localhost
๋ก ์๋ฒ๋ฅผ ์์ํ ๋ ์๋ํฉ๋๋ค. This is either unexpected behavior or should be added to all tutorials that mention hot reloading with gatsby develop
. ์ด๊ฒ์ ์์์น ๋ชปํ ๋์์ด๊ฑฐ๋ gatsby develop
๋ก ํซ ๋ฆฌ๋ก๋ฉ์ ์ธ๊ธํ๋ ๋ชจ๋ ํํ ๋ฆฌ์ผ์ ์ถ๊ฐ๋์ด์ผ ํฉ๋๋ค.
@andreasgruenh gatsby develop --host localhost
๋ฅผ ์ถ๊ฐํด๋ ๊ฐ๋ฐ ์๋ฒ๊ฐ ๋คํธ์ํฌ์ ๋
ธ์ถ๋์ง ์์ต๋๋ค.
Hi @andreasgruenh @gagan0723 please see https://github.com/gatsbyjs/gatsby/pull/2983#issuecomment -346126702 and https://github.com/gatsbyjs/gatsby/issues/2960#issuecomment -346130796 and more recent comments. ์๋
ํ์ธ์ @andreasgruenh @gagan0723 https://github.com/gatsbyjs/gatsby/pull/2983#issuecomment -346126702 ๋ฐ https://github.com/gatsbyjs/gatsby/issues/2960#issuecomment -346130796 ๋ฐ ์ต์ ๋๊ธ์ ์ฐธ์กฐํ์ธ์. . Looks like we should default to localhost
on Mac as well to avoid these. ์ด๋ฅผ ๋ฐฉ์งํ๋ ค๋ฉด Mac์์๋ ๊ธฐ๋ณธ์ ์ผ๋ก localhost
๋ก ์ค์ ํด์ผ ํฉ๋๋ค. For local network testing on Mac can do -H [machine_name].local
, any of that help? Mac์์ ๋ก์ปฌ ๋คํธ์ํฌ ํ
์คํธ๋ฅผ ์ํด -H [machine_name].local
ํ๋ฉด ๋์์ด ๋ ๊น์?
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
It works for me when I start the server with
engatsby develop --host localhost
.gatsby develop --host localhost
๋ก ์๋ฒ๋ฅผ ์์ํ ๋ ์๋ํฉ๋๋ค. This is either unexpected behavior or should be added to all tutorials that mention hot reloading withgatsby develop
. ์ด๊ฒ์ ์์์น ๋ชปํ ๋์์ด๊ฑฐ๋gatsby develop
๋ก ํซ ๋ฆฌ๋ก๋ฉ์ ์ธ๊ธํ๋ ๋ชจ๋ ํํ ๋ฆฌ์ผ์ ์ถ๊ฐ๋์ด์ผ ํฉ๋๋ค.