[英]why github pages not rendering my site, React
I have created a site with react, redux, and firebase as a backend and pushed it to git but when I'm tired to create a GitHub page to the site it builds Succesful and uploaded the files to the gh-pages, but when I'm entring the link it doesn't render the site我创建了一个以 react、redux 和 firebase 作为后端的站点,并将其推送到 git,但是当我厌倦了为该站点创建 GitHub 页面时,它构建成功并将文件上传到 gh-pages,但是当我'正在输入它不会呈现网站的链接
my repo : https://github.com/alon4551/Crown-Market我的回购: https : //github.com/alon4551/Crown-Market
my site : https://alon4551.github.io/Crown-Market/我的网站: https : //alon4551.github.io/Crown-Market/
I've also installed the gh-pages in my project and add this lines in my package json and runed the command npm run deploy
我还在我的项目中安装了 gh-pages 并将此行添加到我的包 json 中并npm run deploy
命令npm run deploy
"homepage": "https://github.io/alon4551/Crown-Market",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build"}
can someone help me有人能帮我吗
The home page should be set up this way:主页应该这样设置:
"homepage": "https://myusername.github.io/my-app"
for a more detailed explanation, Create-React-App Deployment Guide更详细的解释, Create-React-App 部署指南
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.