Blog Issue Issue

I recently posted a deployment question for my blogdown website. I did not exactly follow the instructions in the blogdown book, but I solved the problem - thanks to Yihui's answer.

I am trying to load my site exactly as indicated in the documentation. So now I have the whole project in git repo , and I use the options in netlify as indicated in the documentation, i.e. Build command: for hugo parameter, Publish directory: set to public and HUGO_VERSION set to 0.30 in the deployment settings .

I get a successful deployment (in netlify ) and the site shows that on it

https://typesetter-signs-43683.netlify.com/

but my previous url (from github pages)

https://sn248.imtqy.com/

shows error 404 , file not found .

netlify does not give any deployment error, and the github settings page says site is published . I get a theme icon, but nothing else, and I find it very puzzling!

I suspect that there is another important step that I am missing. Any pointers here will be very helpful!

Thanks SN248

+5
source share
1 answer

The site you created on Netlify is published on Netlify, and the address https://sn248.imtqy.com/ only shows content published on GitHub.

GitHub Pages publishes the contents of your GitHub repository. If you have a Jekyll configuration file, it will build a Jekyll site based on this config, but otherwise it will not run any other builds. Without assembly, there is no host html file. For example, when you go to https://sn248.imtqy.com/ , the GitHub pages look for the index.html file in the root of your repo. It returns 404 because the file really was not found.

The easiest solution is to stop using the sn248.imtqy.com address and use the Netlify address instead. You can change your current address to sn248.netlify.com by going to Settings > Site Information and clicking the Change site name button. Then enter sn248 in the field and save.

If you want to continue using sn248.imtqy.com, you will need to create your site on GitHub. This is a more complex process than what you have done so far, but the blogdown docs have pretty detailed instructions on how to do this, either build local , or configure Travis CI to build for you.

The final parameter is to request an Rbind address, such as sn248.rbind.io. blogdown docs explain how this works, and link to complete instructions on the Rbind support site . Basically, you start by submitting a question to the Rbind support repo to request an address.

+7
source

Source: https://habr.com/ru/post/1272955/


All Articles