1

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?

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks. As you can see on my repo (github.com/Lathryx/TopShelf-Recipes) I put all of the files in the root and it has yet to work! :(
Did you follow netlify.com/blog/2016/10/27/… (it might have changed since 2016 though)
It was actually just because the landing page has to be index.html. Mine was landing.html (as you do). Thanks for the help, though! ^-^
1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.