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. Bearbeiten Sie index.js
in src/pages/
und speichern Sie die Datei.Gatsby's development server should hot reload in the browser and reflect changes made in src/pages/index.js
. Der Entwicklungsserver von Gatsby sollte im Browser neu geladen werden und die in src/pages/index.js
vorgenommenen Änderungen widerspiegeln. The view must be as below: Die Ansicht muss wie folgt sein:
No hot reloading in the browser. Kein heißes Nachladen im Browser.
It works for me when I start the server with gatsby develop --host localhost
. Bei mir funktioniert es, wenn ich den Server mit gatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading with gatsby develop
. Dies ist entweder ein unerwartetes Verhalten oder sollte allen Tutorials hinzugefügt werden, die das Hot Reloading mit gatsby develop
erwähnen.
@andreasgruenh Durch das Hinzufügen gatsby develop --host localhost
wird der Entwicklungsserver nicht dem Netzwerk ausgesetzt.
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. Hallo @andreasgruenh @gagan0723 , siehe https://github.com/gatsbyjs/gatsby/pull/2983#issuecomment -346126702 und https://github.com/gatsbyjs/gatsby/issues/2960#issuecomment -346130796 und neuere Kommentare . Looks like we should default to localhost
on Mac as well to avoid these. Sieht so aus, als sollten wir auch auf dem Mac standardmäßig localhost
verwenden, um diese zu vermeiden. For local network testing on Mac can do -H [machine_name].local
, any of that help? Für lokale Netzwerktests auf dem Mac kann -H [machine_name].local
etwas davon helfen?
Hilfreichster Kommentar
It works for me when I start the server with
engatsby develop --host localhost
. Bei mir funktioniert es, wenn ich den Server mitgatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading withgatsby develop
. Dies ist entweder ein unerwartetes Verhalten oder sollte allen Tutorials hinzugefügt werden, die das Hot Reloading mitgatsby develop
erwähnen.