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
em src/pages/
e salve o arquivo.Gatsby's development server should hot reload in the browser and reflect changes made in src/pages/index.js
. O servidor de desenvolvimento do Gatsby deve recarregar a quente no navegador e refletir as alterações feitas em src/pages/index.js
. The view must be as below: A visualização deve ser como abaixo:
No hot reloading in the browser. Sem recarga a quente no navegador.
It works for me when I start the server with gatsby develop --host localhost
. Funciona para mim quando inicio o servidor com gatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading with gatsby develop
. Este é um comportamento inesperado ou deve ser adicionado a todos os tutoriais que mencionam o recarregamento a quente com gatsby develop
.
@andreasgruenh Adicionar gatsby develop --host localhost
não exporá o servidor de desenvolvimento à rede.
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. Olá @andreasgruenh @gagan0723 , consulte https://github.com/gatsbyjs/gatsby/pull/2983#issuecomment -346126702 e https://github.com/gatsbyjs/gatsby/issues/2960#issuecomment -346130796 e comentários mais recentes . Looks like we should default to localhost
on Mac as well to avoid these. Parece que também devemos usar localhost
no Mac para evitar isso. For local network testing on Mac can do -H [machine_name].local
, any of that help? Para testes de rede local no Mac pode fazer -H [machine_name].local
, isso ajuda?
Comentários muito úteis
It works for me when I start the server with
engatsby develop --host localhost
. Funciona para mim quando inicio o servidor comgatsby develop --host localhost
. This is either unexpected behavior or should be added to all tutorials that mention hot reloading withgatsby develop
. Este é um comportamento inesperado ou deve ser adicionado a todos os tutoriais que mencionam o recarregamento a quente comgatsby develop
.