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. Edite index.js
en src/pages/
y guarde el archivo.Gatsby's development server should hot reload in the browser and reflect changes made in src/pages/index.js
. El servidor de desarrollo de Gatsby debería recargarse en caliente en el navegador y reflejar los cambios realizados en src/pages/index.js
. The view must be as below: La vista debe ser la siguiente:
No hot reloading in the browser. Sin recarga en caliente en el navegador.
It works for me when I start the server with gatsby develop --host localhost
. Funciona para mí cuando inicio el servidor con gatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading with gatsby develop
. Este es un comportamiento inesperado o debe agregarse a todos los tutoriales que mencionan la recarga en caliente con gatsby develop
.
@andreasgruenh Agregar gatsby develop --host localhost
no expondrá el servidor de desarrollo a la red.
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. Hola @andreasgruenh @gagan0723 , consulta https://github.com/gatsbyjs/gatsby/pull/2983#issuecomment -346126702 y https://github.com/gatsbyjs/gatsby/issues/2960#issuecomment -346130796 y comentarios más recientes . Looks like we should default to localhost
on Mac as well to avoid these. Parece que también deberíamos usar localhost
por defecto en Mac para evitar esto. For local network testing on Mac can do -H [machine_name].local
, any of that help? Para las pruebas de red local en Mac, puede hacer -H [machine_name].local
, ¿alguna de esas ayudas?
Comentario más útil
It works for me when I start the server with
engatsby develop --host localhost
. Funciona para mí cuando inicio el servidor congatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading withgatsby develop
. Este es un comportamiento inesperado o debe agregarse a todos los tutoriales que mencionan la recarga en caliente congatsby develop
.