5분 안에 Github에 React 앱 배포
앱 루트 디렉터리에서 다음 명령을 실행합니다.
npm install gh-pages
Ether button is OK.
Ignore this step if you have already published your app
![](https://s1.md5.ltd/image/916a78d9546499de0320d3d76bfcedb6.png)
"homepage": "https://GIT_USERNAME.github.io/REPOSITORY_NAME",
For the URL string, you will need to replace it with your git user name and your current repository name.
TIPS: click the gear icon on the GitHub page, and the URL will show up:
![](https://s1.md5.ltd/image/92524581f92c9e504bbd566b4813e6f6.png)
![](https://s1.md5.ltd/image/6efe6806d759fea46990187c5ca42b46.png)
"predeploy":"npm run build",
"deploy":"gh-pages -d build",
![](https://s1.md5.ltd/image/7807349183bc306092b4cea22e74bb02.png)
Alternatively, you can directly update your JSON file on the GitHub webpage and commit changes.
npm run deploy
![](https://s1.md5.ltd/image/c4cd377d031be76fc81c8efacfa973e9.png)
After the deployment, some changes exist. Just commit these changes again.
General
> Pages
: ![](https://s1.md5.ltd/image/6edeccd4d69eea03bcc05564e7de8491.png)
![](https://s1.md5.ltd/image/5881ee85c8ed96a79916c25270478329.png)
This is my React app Demo I used for this tutorial and welcome to play
Git Repo for this game
![](https://s1.md5.ltd/image/dc28f3f5e97b0a2376d005da34b2b2c5.png)
참조
표지 페이지:
https://akhtarvahid.medium.com/setup-git-and-deploy-react-app-to-github-pages-7b5c4180fdaf
Reference
이 문제에 관하여(5분 안에 Github에 React 앱 배포), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/yongchanghe/deploy-your-react-app-on-github-in-5-minutes-1pl2텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)