繁体   English   中英

在github上部署我的React应用

[英]Deploying my react app on github

我有一个主分支和gh页。

当我的一个朋友开发人员引导我浏览它时,我就能在gh页上看到它。

我试图将gh-pages与master合并以添加我所做的样式,这搞砸了github的可见应用程序页面。

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject",
    "precommit": "lint-staged",
    "build": "node build.js", 
    "deploy": "npm run build && git-directory-deploy --directory _build/"
  },
  "homepage": "https://marianapt.github.io/reduxTable/",
  "lint-staged": {
    "*.{js,json,css,md}": ["prettier --write", "git add"]
  }

多数民众赞成在我的package.json

我安装npm以确保所有更新。

自从我合并母版页和gh页以来,我看不到我的应用程序,而是回到了自述页上。 https://marianapt.github.io/reduxTable/这就是链接...

我不了解您的实际情况,但我认为问题是执行合并时您丢失了master分支的prodapp.js。 只需尝试运行npm run build并再次推送到github,希望对您有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM