我正在与Github页面遇到一个奇怪的问题.我将一个新提交推送到我的个人页面页面maltzj.github.io,但新文章没有出现在那里.当我在本地执行服务器时,一个帖子就在localhost:4000/posts/the-price-of-inconsistent-code/.但是,当我访问http://maltzj.github.io/posts/the-price-of-inconsistent-code时,我得到了404.我还添加了一个新文件,该文件应该存在于http://maltz.github. io/test.html,但也会抛出404.
一切都在本地构建和运行我的git repo是最新的,并且github状态页面上没有关于构建问题的任何内容,所以我对这个问题的处理方式有点不知所措.如何使用我添加的新contnet更新我的页面?
作为参考,支持我的页面的repo的位置是http://github.com/maltzj/maltzj.github.io
github的gh-pages有问题.以_(下划线)开头的html页面显示错误.
Page does not exist! Read the Full Documentation
Instructions for setting up username.github.com and stuffs.
Run Code Online (Sandbox Code Playgroud)
例如:让我们举一个例子
https://github.com/harikt/docs/blob/gh-pages/api/Aura.Di/_src.html
是来源
它应该在http://harikt.github.com/docs/api/_src.html上呈现
但目前还没有.它只发生在以_(下划线)开头的名称中.如果有人有同样的问题或者在不重命名的情况下解决它,请告诉我?
我试图将我的网页托管到Github页面中,但是由于某种原因,它似乎只显示我的自述文件。
GitHub存储库:https : //github.com/InquisitiveDev2016/InquisitiveDev2016.github.io
网站:
我正在尝试在此处部署我的 create-react-app但出现这些错误。static/css/1.e03ed13c.chunk.css net::ERR_ABORTED 404(未找到)。我没有任何 chunk.css 文件。什么是问题?你能帮助我吗?
我的 package.json
{
"homepage": "http://ebrugulec.com/image-text-detection",
"name": "image-text-detection",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"filepond": "^3.5.0",
"filepond-plugin-image-preview": "^3.1.4",
"react": "^16.6.3",
"react-autosize-textarea": "^5.0.1",
"react-dom": "^16.6.3",
"react-dropzone": "^7.0.1",
"react-filepond": "^5.0.0",
"react-scripts": "2.1.1",
"superagent": "^4.0.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11", …Run Code Online (Sandbox Code Playgroud) 我想象的是托管在 GitHub Pages 中的最简单的简单网站。该站点由一个文件 组成index.html,其内容为
<html>
<head>
<title>Simple Test</title>
</head>
<body>
<p>Hallo world</p>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
(注意,您可以在此处查看存储库。)
我想我正确设置了存储库,并且存储库设置确认我的“GitHub Pages 站点当前正在从master分支构建”。
您应该可以在此处看到该页面:https : //githubpagestest83.github.io但对我而言,我收到了 404 Not Found 错误。
对于相同的问题How to fix page 404 on Github Page有十八个答案。以下是它们对我不起作用的原因:
.nojekyll文件。试图在这里但根据文档不需要在这里。 我的应用程序在本地服务时运行良好。我已经编译了没有错误的构建。
网站链接在这里 - https://evilernie44.github.io/users/index.html
当我尝试通过 github 页面加载站点时,我的 get 请求收到 404。
我已经尝试添加一个 404.html,然后按照 angular docs 的建议将 index.html 的内容复制到它,但我似乎仍然无法让它工作。
我不知道接下来要做什么,有没有人有任何建议。