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. Edit index.js
di src/pages/
dan simpan file.Gatsby's development server should hot reload in the browser and reflect changes made in src/pages/index.js
. Server pengembangan Gatsby harus memuat ulang di browser dan mencerminkan perubahan yang dibuat di src/pages/index.js
. The view must be as below: Tampilannya harus seperti di bawah ini:
No hot reloading in the browser. Tidak ada reload panas di browser.
It works for me when I start the server with gatsby develop --host localhost
. Ini berfungsi untuk saya ketika saya memulai server dengan gatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading with gatsby develop
. Ini adalah perilaku yang tidak terduga atau harus ditambahkan ke semua tutorial yang menyebutkan memuat ulang panas dengan gatsby develop
.
@andreasgruenh Menambahkan gatsby develop --host localhost
tidak akan mengekspos server pengembangan ke jaringan.
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. Hai @andreasgruenh @gagan0723 silakan lihat https://github.com/gatsbyjs/gatsby/pull/2983#issuecomment -346126702 dan https://github.com/gatsbyjs/gatsby/issues/2960#issuecomment -346130796 dan komentar terbaru lainnya . Looks like we should default to localhost
on Mac as well to avoid these. Sepertinya kita harus default ke localhost
di Mac juga untuk menghindari ini. For local network testing on Mac can do -H [machine_name].local
, any of that help? Untuk pengujian jaringan lokal di Mac dapat melakukan -H [machine_name].local
, apakah ada yang membantu?
Komentar yang paling membantu
It works for me when I start the server with
engatsby develop --host localhost
. Ini berfungsi untuk saya ketika saya memulai server dengangatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading withgatsby develop
. Ini adalah perilaku yang tidak terduga atau harus ditambahkan ke semua tutorial yang menyebutkan memuat ulang panas dengangatsby develop
.