相关疑难解决方法(0)

Github页面没有更新

我正在与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 github-pages

89
推荐指数
11
解决办法
6万
查看次数

以下划线开头的名称显示错误页面不存在gh-pages分支

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-pages

15
推荐指数
1
解决办法
1910
查看次数

GitHub页面仅显示自述文件?

我试图将我的网页托管到Github页面中,但是由于某种原因,它似乎只显示我的自述文件。

GitHub存储库:https : //github.com/InquisitiveDev2016/InquisitiveDev2016.github.io

网站:

https://inquisitivedev2016.github.io/

git github

9
推荐指数
4
解决办法
1万
查看次数

React Github 页面部署 ERR_ABORTED 404(未找到)

我正在尝试在此处部署我的 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)

http-status-code-404 github-pages reactjs create-react-app

6
推荐指数
2
解决办法
7917
查看次数

非常简单的 HTML 导致 404 Not Found on GitHub Pages

我想象的是托管在 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分支构建”。

GitHub 设置截图

您应该可以在此处看到该页面:https : //githubpagestest83.github.io但对我而言,我收到了 404 Not Found 错误。

对于相同的问题How to fix page 404 on Github Page有十八个答案。以下是它们对我不起作用的原因:

  1. /sf/answers/3213543791/推送空提交。在这里试过没有效果。
  2. /sf/answers/2778403281/添加.nojekyll文件。试图在这里但根据文档不需要在这里
  3. /sf/answers/966887281/删除并重新创建 gh-pages 分支。我正在使用大师。
  4. /sf/answers/3502408661/添加 index.html。https://githubpagestest83.github.io/index.html 也失败了。
  5. /sf/answers/2935159391/推送只更改空格的提交。在这里试过没有效果。
  6. /sf/answers/921861531/ URL 区分大小写。我正在使用所有小写字母。
  7. /sf/answers/3189272341/添加一个空的 docs/CNAME 文件。在这里试过没有效果。
  8. /sf/answers/3248662091/ …

github github-pages

5
推荐指数
0
解决办法
314
查看次数

将 Angular 6 应用程序部署到 github 页面时出现 404

我的应用程序在本地服务时运行良好。我已经编译了没有错误的构建。

网站链接在这里 - https://evilernie44.github.io/users/index.html

当我尝试通过 github 页面加载站点时,我的 get 请求收到 404。

我已经尝试添加一个 404.html,然后按照 angular docs 的建议将 index.html 的内容复制到它,但我似乎仍然无法让它工作。

我不知道接下来要做什么,有没有人有任何建议。

deployment github-pages angular angular6

4
推荐指数
1
解决办法
3406
查看次数