Search code examples
githubweb-deploymentnetlify

I am unable to deploy my website to Netlify


I have been creating this website for a few weeks now (I am fairly new to web-dev) and have just recently made a repo (on Github) for it.

Link:

https://github.com/Lathryx/TopShelf-Recipes

I want to deploy with Netlify however I am unable to. Netlify continuously gives a 404 error on the site(s) that I create. I think it has something to do with the publish directory but I'm not sure. I want it to open to landing.html.

The few times I have tried to deploy now I have tried:

  • No build command/publish directory.
  • No build command and the publish directory set to TopShelf Recipes (have also tried /TopShelf Recipes).
  • No build command and the publish directory set to TopShelf Recipes/landing.html.
  • No build command and the publish directory set to /TopShelf Recipes/landing.

Image of Error: Image of the error.

I really don't know what to do. Does anybody know why this is happening?


Solution

  • The landing page of your site must be titled index.html (as I’ve found), this fixed it for me. Mine (originally) was titled landing.html.

    I will keep this in mind in the future.