Hello,
As the title implies, when I build the Jekyll theme locally using bundel exec jekyll serve my website all loads fine on http://127.0.0.1:4000/, but when I commit and push to my github repository upon opening https://420ayan420.github.io/ I am met with the following:
I’ve removed the CNAME file and the custom domain setting in the github pages settings.
If by giving me an error somewhere along the line you mean that if my custom domain registry isn’t giving an error, I don’t think it is as before I created a simple github page with just a README.md file and used that to create a github page and it all loaded and updated fine on my custom domain name.
I have also removed the docs folder and the example folder.
I’ll have a look now to see if the issue is resolved after allowing github pages to update for 5-10 minutes.
As even after deleting the docs and example folders I still have a /docs option. However, I don’t believe this is an issue as even before deleting the folders I had already configured github pages to read from /root.
I’ve also noted a strange behavior now, even when I have removed the CNAME and changed my github repository settings https://420ayan420.github.io still forwards to https://www.ayanali.net.
your gemfile is specifying jekyll 4 but GH pages uses 3.9 or something. I thought GH ignored the gemfile.
Also not sure why the actions page is there, I didn’t see an action file/folder in your repo. Maybe all GH pages sites use actions now? though that seems weird, with an action you can get past the GH 3.9 limitation so it is like there is a mix of things happening.
I don’t use GH page or actions so I am not all that familiar with it. You could try removing the gemfile and see what happens.
I think that due to the errors the change to the cname file is not being taken into account - so it is still redirecting cause it thought it worked that one time and until you can get past the error it will stay there? something like that.
Warning: github-pages can’t satisfy your Gemfile’s dependencies. 17/usr/local/bundle/gems/jekyll-3.9.3/lib/jekyll/theme.rb:84:in `rescue in gemspec’: The jekyll-theme-basically-basic theme could not be found. (Jekyll::Errors::MissingDependencyException)
the gemfile is just floating in the root of your file, you can try deleting it and see what happens, there was nothing in it other than the jekyll version. It is not required.
I don’t like themes, and have never used one. I prefer to have all the files in my repo as it is less obtuse.
It kind of looks like you cloned the theme repo? this is good and what I like to do. If you do this you don’t need the theme setting in the config cause you aren’t using a theme - the theme is your actual site already.
I have deleted the Gemfile, I have also commented out line 37.The repo was cloned.
As for seeing if any updates take place won’t it just be stuck in some sort of limbo because of the failed build?Should I initiate a manual build now?
Nevermind, It already auto-built, but success!?
I am also at my limit for replies as a new user for the next 22 hours so I’ll just have to edit this reply from now on haha
I’ll just let everything propagate out for 10-15 minutes to see if it actually has worked.
Yup, just used edge to get around the DNS cache thingie. Thank you so much for your help
it looks to be working now - though in my chrome browser where I originally looked at it it is still caching the dns redirect.
If you can’t pull it up try a different browser or incognito mode and it should work. I’m not sure how the browser is caching the redirect but sometimes these things happen and make it seem like it isn’t working when it really is.