问题描述
我在gh页上托管我的react项目时遇到问题.我在GitHub上有我的仓库----> GitHub仓库我的页面返回自述文件而不是indx.html(public/index.html). ---> 我的页面
I have problem with host my react project on gh-pages.i Have my repo on github ----> GitHub repo My page return readme file instead of indx.html (public/index.html). ---> My Page
我应如何使用我的React应用正常运行我的页面?
What should i do to my page with my react app works correctly?
推荐答案
根据我的经验,这只是一个延迟问题.当我最初提交index.html(在回购的根目录中)时,myorg.github.io继续提供README.md.几个小时后,我返回并再次尝试-看得出我的index.html被送达了.由于我不在的时间,我无法猜测github页面更新需要多长时间.
In my experience, it was simply a latency issue. When I initially committed index.html (in the root of the repo), myorg.github.io continued to serve README.md. After a few hours, I returned and tried it again - lo and behold my index.html was served. Because of the time I was away, I can't make a guess about how long it takes github pages to update.
这篇关于Github页面返回自述文件而不是index.html.无法托管我的React项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!