React App not building and showing readme on public domain - reactjs

I have set the "homepage" value in the package.json to "." and that will show the basic react app in build/index.js locally but the readme just shows on the public domain. The site is hudsonbasso.com and here is a link to the repo https://github.com/hbasso/wherecaniwatch/blob/master/build/index.html . It is hosted through github pages.
I tried changing the hostname to several different things and the branch name that github pages was serving up.

This ended up being an issue with my DNS setup. I found a good walk through here Custom domain for GitHub project pages .

Related

GitHub pages deployed with react-gh-pages updated the gh-pages branch but the app is showing 404

I have a website hosted with GitHub Pages at https://[username].github.io.
I have a separate deployment for the repo [username].github.io and the web page hosted at https://[username].github.io is working fine.
I recently created a react app using create-react-app and wanted to host that to Github pages. The repo name is react-gsap. Now I followed the https://github.com/gitname/react-gh-pages tutorial to deploy the app to Github pages. Once I ran npm run deploy I see that the gh-pages branch is created and it has the index.html and other files that are required to run the web app.
The problem is when I access https://[username].github.io/react-gsap I am getting 404.
Here's the repo that I created: https://github.com/atiqorin/react-gsap
What am I missing?
UPDATE:
It was just a delay. The github pages is working now. I guess it takes some time to have the page ready. Anyone having similar issue might want to wait an hour to see the changes.

Publishing a React Website on Bitbucket Cloud

I'm trying to Publish/Host a ReactJS project on Bitbucket. the project was bootstrapped using create react app, therefore the index.html file is within a public folder i.e. root/public/index.html.
i have followed the instructions on https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/ but i cant seem to get the site to show.
the url's i have tried are [workspaceID]/ui-library.bitbucket.io and [workspaceID]/ui-library.bitbucket.io/public (ui-library being the repo name). Both of these return repo not found or just google search results.
am i doing something wrong here? i'm new to Bitbucket, i would have previously used GitHub and GitHub pages for things like this.
thanks...

Fetching in reactjs doesn't work after deploying in github pages

So I have a reactjs app publish in github pages, is this one https://bernardoolisan.github.io/PyOcr/
The problem is that the app fetch data, but when I deploy it on github pages it give this error:
And it was working:(
And now my page doesn't work too, it was working but right now is blank i dont know why
I guess you are deploying the react project the wrong way to hosting providers such as github or netlify . First you must build your react project and then only push the files inside the build folder to hosting provider . Github pages can only serve static html css js files so it can only serve the build folder of your react project .
Note
To build a react app you can run npm run build and a build folder will be generated . Then you can push the files inside of the build folder to github repository and enable github pages for it .
I was having a similar issue, and I too though gh-pages can't fetch data. But what I did was I added cors to my server. I allowed cross-origin requests. Now it retrieves data from my server on heroku.

I would like to publish images, env public folder link & react app

I have recently created my react portfolio website, and would like to publish it for free using github pages, or any other free domain. I don't know how to do so, as I have multiple things. I have my public folder will my projects images, and I also have my .env file with hidden information. How can I do this all?
Did you tried GitHub Pages?
All that you need to do is to create repo with your's github nickname and commit all your changes into this repo. Not sure about .env file and GitHub Pages, needs some research.
GitHub Pages - https://pages.github.com/

Why isn't my React app deploying on GitHub

I'm trying to publish a react app I build on VS code, but it's not working. I followed this tutorial (https://github.com/gitname/react-gh-pages) but I can't access it at the address, I get 404. Here's my repo I'm trying use https://github.com/LazaroFilm/markdown-previewer
If you mean getting 404 on Github Pages, then be a little patient since it takes some time for github pages to show your demo
SOLVED. I needed to set the default branch in my GitHub repo settings.

Resources