Lathryx
Lathryx

Reputation: 450

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:

Image of Error: Image of the error.

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

Upvotes: 1

Views: 1460

Answers (2)

Lathryx
Lathryx

Reputation: 450

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.

Upvotes: 1

VonC
VonC

Reputation: 1329812

The netlify/my-first-netlify-deploys demo project shows files with a netlify.toml to adtually generates the files.

Result: https://playwith.netlify.app/

But if there are no generation involved, then said files should be directly at the root folder of the repository, not in a subfolder.

Upvotes: 1

Related Questions