GitHub Pages 404 when trying to host Polymer Starter Kit - github

So I'm simply trying to host the polymer-starter-kit on git pages which should be easy enough in theory there's already a simple tutorial for how to do so here. The problem is after following all the instructions and navigating to my SKHolmes.github.io I get a 404 from github saying it couldn't load the resources, be that one or many. I can clearly see there is an index.html file in the root directory.
Here is the error
Here is my repository
Has anyone had a similar problem? Is there any tricks I'm missing?

Did you read the gh-pages doc? When you want username.gitub.io you need to push to the ´master´ branch, not the 'gh-pages' branch.

Related

Unable to host project to GitHub Pages

My repo: https://github.com/shoegazzz/simple-trello-clone
When following a link https://shoegazzz.github.io/simple-trello-clone/ :
404 File not found The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL. For root URLs (like http://example.com/) you must provide an index.html file. Read the full documentation for more information about using GitHub Pages.
I read the documentation, watched videos and discussions on the topic, renamed the repository to the username, but it still does not work. Tell me what should be done here?
first things first: please leverage the usage of the .gitignore file (in the root directory of your repository). You can copy-paste the content provided in this file: https://github.com/github/gitignore/blob/main/Node.gitignore into your .gitignore file. This will ignore the node_modules directory from getting staged and ultimately from getting pushed into the repository.
Now, the problem you described occures when there is no information for GitHub Pages. GitHub Pages is searching for an index.html which isn't there, as by default GitHub Pages is watching the root directory of your repository.
Please have a look at GitHub Actions to Deploy your project to GitHub Pages. This is the best source I could find in a short matter of time: https://github.com/gitname/react-gh-pages
If you have any follow-up questions, feel free to ask.
TL;DR: You need to provide the built static-website content for GitHub Pages to work with.

How do I fix 404 error on Github Pages for a personal page I'm creating

I tried to access my GitHub page:https://adityakm24.github.io/ But it shows 404 pages not found. I looked for many tutorials online but couldn't come up with a proper solution. Adding /Index.html doesn't work either. But I am sure about adding the index.html in my repo and index.html file is in the master branch.
https://adityakm24.github.io/ means a User page, for a GitHub repository named <user>.github.io at, in your case, https//github.com/adityakm24/adityakm24.github.io
Make sure you have selected a Source in the settings of that repository: it should be master by default.
And your file must be index.html, not Index.html (it is case sensitive)
You need to choose the branch properly in the settings page as shown below
Go to settings>manage access>manage
Here I can point out two reasons why it is not coming up
Provide the proper 'homepage url' in your package.json. This is a very important step. Follow this convention- "https://{username}.github.io/{RepoName}/". Anything other than this will give 404 error.
Go to your github repository and select the gh-pages branch.(No other branch will work)

Why can't I host my project on github pages?

I have a simple weather app using react I've built and pushed to Github. Everything works when I run it locally but when I try to host it on Github pages, I get a 404 error.
https://caseycling.github.io/weather-app/
I'm not sure what I did wrong as I took the same steps as with every other project I've succesfully deployed: went to settings and under Github pages, I chose master branch as the source. Initially, it was just displaying the readme but now it only displays a 404 error message. When I've googled this issue, some people are saying I need to move my folders to the root of the directory but I'm not sure how to do that exactly.
Here is the repo:
https://github.com/caseycling/weather-app/
My understanding is that in order to run a react app in github pages you need to setup the gh-pages plugin and have a special 'deploy' build script in package.json
https://itnext.io/so-you-want-to-host-your-single-age-react-app-on-github-pages-a826ab01e48
https://codeburst.io/deploy-react-to-github-pages-to-create-an-amazing-website-42d8b09cd4d
https://medium.com/the-andela-way/how-to-deploy-your-react-application-to-github-pages-in-less-than-5-minutes-8c5f665a2d2a
There are also apparently certain restrictions in what you can do with the router in github pages websites, but for a simple app it should be sufficient.

Using Github to create a webpage but it returns a 404 error

Am trying to test out hosting a website from Github using Github pages.I created a skeleton website using Jekyll and uploaded it into a .github.io repository:
https://github.com/themallardcomplexion/themallardcomplexion.github.io
I then enabled github pages from the setting.
So right now if I go to: themallardcomplexion.github.io I should be able to see the Jekyll site. However all I get is a 404 error...
I know its not an index issue as I have an index.md file in my repository. I've enabled github pages so what am I doing wrong? I have tried searching for the problem online but none of the solutions seem applicable..
Thanks internet people
I deleted everything and created a new repository. Seems to be working now. Dont know what the problem was but at least its working..

404 Error on files that exist in the proper place on GitHub Pages

This is my first attempt at using GH Pages, and I have a pretty simple blog site created with Vuejs.
I've created my repo, then deployed the built code to a gh-pages branch, and the settings are pointed to that branch.
However, I get a WSOD when I try to view my site, and when I look in the console, I get a list of messages that the referenced files can't be found.
When I look in the /static directory in the gh-pages branch, though, all of the files that it says are missing are actually there where they're supposed to be in relation to index.html.
What am I missing that keeps the site from showing?
If you look into the requests, you would find out requesting
https://wonder95.github.io/static/css/app.da01b7b80b6795e91d3ceace476633af.css
This has missed the /smga/ part, and is not what published in your git pages. As the correct link should be
https://wonder95.github.io/smga/static/css/app.da01b7b80b6795e91d3ceace476633af.css