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. قم بتحرير index.js
في src/pages/
واحفظ الملف.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. يبدو أنه يجب علينا الإعداد الافتراضي إلى localhost
على نظام Mac أيضًا لتجنب ذلك. 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
.