Hi, I am having some trouble deploying my site from a repository on github, as soon as I enter the website I get hit with a Page Not Found, I think the problem is in the Build settings configuration,
I’ve set the base directory as ./portfolio and the publish directory as ./portfolio/images everything else is empty
this is the website: sickpoitew-portfolio.netlify.app
if you need to see my repo it’s called WebsitePortfolio, my account is Poitew
Did you see this guide yet? This is the best place to start for “Page Not Found” issues.
If you are still seeing issues after following the troubleshooting steps in there, please check out this Support Guide as well. It outlines all of our build and deploy resources and will get you on the right track
If none of the above resources help, please write back with your site name and what steps you have tried and we can look into this further!
Hi, I had already seen that guide but it didn’t help me, I’ve tried changing the publish directory and base directory multiple times, making some test, but it didn’t work every time, this is my website domain name sickpoitew-portfolio.netlify.app
The values you mentioned in your first post are definitely incorrect based on the structure you outlined.
If you check the documentation you’ll see that the Publish directory is the folder that should contain your HTML & assets for deployment, and that it is relative to the Base directory.
Setting the Publish directory to deploy images would always be incorrect, as it would only deploy your image files and not your other files.
Setting the Publish directory to portfolio/images would also be incorrect if your Base directory was set to portfolio as that would be looking for portfolio/portfolio/images.
My guess is that you’re still accidentally just deploying your images folder.
Since your site doesn’t appear to be actually performing a build, and is just static files, you could configure it a few ways.
Don’t set a Base directory at all, leave it blank (the default is the root of the repository), then set your Publish directory to portfolio. This will perform no build at the root, then deploy all files in portfolio.
or
Set your Base directory to portfolio, then leave your Publish directory blank (the default is the root of the Base directory). This will perform no build in portfolio then likewise deploy all files within it.
Hi, first of all thank you for answering, however , both your answers are not working, maybe I’m just doing it wrong, here’s a screenshoot about my build settings:
@Poitew Notice that you have the Package directory set to portfolio/ (something you never mentioned).
I also never told you to set the Package directory, you should clear that and leave it as its default too, (if you look closely you’ll see it even has a contextual note telling you not to set it unless it’s different from the base directory).
You’ve also got both the Base directory and Publish directory set in that screenshot, which doesn’t match my instructions either. You want one or the other, not both.