ga-wdi-exercises / project1

[project] GA- Project 1
3 stars 75 forks source link

GitHub pages are not deploying #281

Closed maikelnabil closed 7 years ago

maikelnabil commented 7 years ago

Here is my original repo: https://github.com/maikelnabil/Refugees-Quiz/commits/gh-pages It should deploy to: https://maikelnabil.github.io/refugees-quiz/ In the setting page of this repo, it says that the site is already published at this link, featuring my gh-pages branch

I've searched online, and found other people having the same problem

I found this link of troubleshooting GitHub pages https://help.github.com/articles/troubleshooting-github-pages-builds/ i don't know where to look at Jekyll errors. One of the errors on this link was about links, so I deleted all links from my second repo. Still nothing changes.

Someone on stackoverflow suggested that I should make sure that PageHub Pages are enabled in my GitHub settings. I don't see this option in my setting.

So far, my only successfully deployed GitHub page is https://maikelnabil.github.io/ Anything after the last / doesn't work.

amaseda commented 7 years ago

So I just pushed your code to a new repo that I made to test this out, and it works fine. Some links...

I'm not sure what the exact problem is, but it might have to do with the fact that you had changed the repo name.

My recommendation would be to create a new Project 1 repo and push your code to a gh-pages branch on there. You do not need to delete the original repo.

Let me know how that goes.

@maikelnabil

maikelnabil commented 7 years ago

Actually, James has just found the problem. The main file should be index.html, not Index.html. It's case sensitive. In the repo you made, Adrian, the index file doesn't start with a capital letter. That's why it works. I edited my repo, and it's working now perfectly!

Thanks a lot for your help! It took me a couple of hours chasing my tail, but I've learned few things along the way. Thanks a lot for your time!

amaseda commented 7 years ago

Ah, nice! Glad you were able to solve the issue.