DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
 
mathcodes profile image
Jonathan P Christie

First of all thank you for your time and kind help to all us junior developers here. Much appreciated!!!! I'm having the same issue as others here. I get this far:

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

File sizes after gzip:

81.32 KB build\static\js\main.92314488.js
65 B build\static\css\main.d41d8cd9.css

The project was built assuming it is hosted at /jonchristieportfolio/.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
To publish it at mathcodes.github.io/jonchristiepor..., run:

npm run deploy

personalportfolio@0.1.0 deploy C:\Users\jonpc\Desktop\JonChristiePortfolioMASTER\jonchristieportfolio
gh-pages -d build

Published

BUT it still doesn't work. I tried using different combinations of branches and root/ vs doc/ in githb pages in settings, I tried pushing just the build folder. I've tried an embarassing amount of things to where I need your help!

Should I be in /root or docs/ for in github pages? What do I do after I get to the step above. It says its built and that I should run npm run deploy again... tried that no luck. What is the next step? Here is my repo. I hope you can drag me out of this vortex!!! Thank you in advance :)

github.com/mathcodes/jonchristiepo...