GitHub pages deployment is giving problem as it won't fetch the data file - github

I've created a simple app, and when I open it locally works correctly. 1
When I deploy to GitHub pages, the deployment works, but for some reason the app isn't fetching the data, so I just have a navbar. 2
Does anyone know why this might be happening? I followed the instructions here: https://docs.github.com/en/pages/quickstart and selected (/root) branch.
When I tried using the /docs branch the app didn't get deployed, it just said "Your GitHub Pages site is currently being built" for a long time (> 20min)...
If helpful, here's the repo: https://github.com/ghersf91/chocostore
Thank you.

Related

Deploying website on github without index.html file

I recently worked on a personal project using React and that included files like: app.js, app.css, index.js and everything worked smoothly. However, when trying to deploy the site, I keep receiving this
error. My main files are within the src directory shown here. On the github pages tab, what should I change the custom domain to so that I can successfully deploy the website?
I've also read somewhere that I can create a dummy index.html file, but I am still deeply confused. Any guidance on how to deploy the site would be greatly appreciated.
Thank you!
This article contains steps needed to deploy react app in github pages.
Article Link: here.

Jekyll workflow on GitHUB creates website in a subdomain

I created my website using the tutorial available at
https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll
I used /docs as origin of the data and pushed the website as described.
I successfully created the website rosarioiacono.github.io using Jekyll.
Now I wanted to change the name of the website. To do so, I decided to delete the previous repository and start the process again.
I deleted the repository and removed the origin.
I then started the process trying to create the website datagronomist.io, but at the end, what I get is a website with the address https://rosarioiacono.github.io/datagronomist.github.io/
I would need some help to do that.

"Site has not yet been deployed" after netlify deployment

I already tried a million times and not able to figure out where I am going wrong. I tried simple static website repo. I even added parcel bundler. I just get same error message.
I even forked netlify's own demo repo. And I got same message. Why I am not able to deploy the site?
I looked at forums, blogs and even answer in this forum and I am not finding clue to this exact message. I didn't have netlify.toml file. I added that file too and I don't see any change in deployment status.
Initially I was trying to just create site online by connecting to GitHub repo. When I tried Netlify-CLI I could see some deploy action happen. But server was not render. Found a guide here: https://github.com/Tanu-N-Prabhu/Multiplication-Table-App
Followed last 3 steps under Deployment section:
Go to your Netlify Dashboard to the project. Click on Site has not yet been Deployed. Again click on Deploy Preview this will unlock the Preview Deploy which is a temporary URL.
After viewing the Preview, click on Publish deploy option to deploy your project.
Now your project is live and deployed on the internet.
These steps worked. But Javascript files were not rendering. I wonder why the whole process is so cumbersome when they advertise everything is taken care by Netlify automatically? There is no document for Site has not yet been deployed on their site and google search only leads me to Page not found forum page.
You must add the --prod.
The command should look like this: netlify deploy --prod.
This fixed it for me.

Github site not found 404

I created a new repo
https://github.com/Azambadar/software-developer-portfolio on GitHub and enabled my site in the settings at the master branch and it showing the following message:
Your site is ready to be published at
https://azambadar.github.io/software-developer-portfolio/
but when I click the link, it showing 404 site not found.
Repo have index.html file in the root directory and github would setup auto to this file.
Am I missing something ? How can I fix this issue?
GitHub recently experienced a significant service interruption/failure due to apparent hardware issues:
Developer platform GitHub has been down for hours due to data storage
issues. According to GitHub’s status message board, the issue began
around 10 PM ET on Sunday. Some users are facing login errors while
others are not able to see their commits.
The service is back up and running however are still recovering- in the case of Github Pages, they are still rebuilding Pages:
We have resumed Pages builds and will continue to monitor as we process a delayed
backlog of events.
You haven't done anything wrong with configuring your GitHub Projects site and it should start working within the next few hours.

"page build failed" when pushing a new blog post to github

I've got a blog hosted on github using jekyll bootstrap. It's been working for a while now, but the last new times I've tried to post a new blog page it's failed the pushed to github:
The page build failed with the following error:
page build failed
For information on troubleshooting Jekyll see
https://help.github.com/articles/using-jekyll-with-pages#troubleshooting
If you have any questions please contact GitHub Support.
I've tried deleting the recent posts I've added so that I'm consistent with the "live" version, and I've run jekyll --safe locally (no issues). I can run jekyll --server and run the site locally and all is fine, but when I push it, no joy. I've removed my jekyll gems and its dependencies, and re-added using the versions that match the versions being used by github, and no joy there either.
Before I revert to deleting the entire blog and starting it again, can anyone suggest something else to try?
Fixed it.
For some reason my categories in my posts were surrounded in square brackets which represents a collection - this is not supported any more (likely it was never supported but just let me get away with it). Changed this and all is working now.