2

Recently I started building a small single page application for reducing anxiety. I am trying to host this basic CSS/HTML/Javascript website on GH pages but can't seem to figure out what I am doing wrong after hours of looking on the web.

The project: https://github.com/GrovesJames/Release

Any tips or guidance would be appreciated! Thank you!

9
  • You need to enable github pages for the repository in the repository settings. Commented Feb 1, 2020 at 19:41
  • I try that but I get this error when I visit the site: "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 example.com) you must provide an index.html file. Read the full documentation for more information about using GitHub Pages." Commented Feb 1, 2020 at 20:07
  • Need to be more clear about what your question is, Read guidelines stackoverflow.com/help/how-to-ask Commented Feb 1, 2020 at 20:41
  • @Trisk set it to master branch /docs folder and wait. It usually takes upwards of 10 minutes for the CDN to catch up. Also make sure you are clearing your cache before reloading the page. Commented Feb 1, 2020 at 22:59
  • @Olian04 Gotcha. Now when I click it, it boots up a blank page. When I inspect it gives me this console error: "Failed to load resource: the server responded with a status of 404 ()" Commented Feb 2, 2020 at 4:36

1 Answer 1

2

In Your web application repository click on settings, then scroll down until you find GitHub Pages:

Then click on none and change it to master branch /docs folder

Sign up to request clarification or add additional context in comments.

10 Comments

I try that but I get this error when I visit the site: "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 example.com) you must provide an index.html file. Read the full documentation for more information about using GitHub Pages."
What source did you select on GitHub pages? master branch OR master branch /docs folder?
I tried both sources and was given the same error for both :/
Try to move your index.html to release folder (the main folder)
I emptied my cache and it booted up my project but the error now says "after clearing my cache, the error now says "GET grovesjames.github.io/Release/main.js net::ERR_ABORTED 404"
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.