我的存储库:https://github.com/Alperenkarslix/website 我的网站:https://alperenkarslix.github.io/website/
我不明白为什么我的
GitHub pages
无法加载我的任何源文件。我要加载的文件位于src folder
中。一切都在本地主机上正常工作。它只加载 index.html
,这是一个白色的空白屏幕,我在这个文件中没有编码任何内容。我看过一些关于这个问题的类似帖子,但没有找到任何解决方案。
我已经通过
gh-pages module
安装了 npm
并完成了“npm run deploy”;这创建了我的 gh-pages branch.
我已经用所需的信息更新了我的 package.json
。
我之前在该域的
Github Pages
上托管过此网站,没有任何问题。看起来 Github pages
并且从那时起流程已经发生了变化,我现在无法让它运行。
我在
package.json:
中添加了这段代码
"homepage" : "https://alperenkarslix.github.io/",
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
我的存储库中有一个
gh-pages branch
我在终端中使用这个命令
npm run deploy
,它有效并且显示已发布,但我仍然看不到我的页面。
请尝试将 package.json 中的主页密钥替换为
"homepage": "https://alperenkarslix.github.io/"
到
"homepage": "https://alperenkarslix.github.io/website"
这里的网站是指您的应用程序名称。