example.com/admission/ works fine but example.com/admission/success/ shows 404 page not found.
Both pages works fine in local hugo server.
I checked deployment list and the latest deploy marks as “published” so I downloaded “deployed files” and found that success directory and success/index.md are not deployed.
Trying to “Clear cache and deploy site” did not change the situation.
First, I can see every pages of the website except example.com/admission/success/.
The last deploy is published.
It is true that the downloaded files(“deployed files”) dose not include /content/admission/success directory but the directory and /content/admission/success/index.md are added to the git repository.
Downloaded files includes both admission/index.html and /index.html.
Setting of the “Publish directory” is “public”.
Also example.com/admission/success/index.html returnes 404.
Hi, @rino, I do see that the directory and file are not being created by hugo.
The repo is private so I’m not able to test this personally. The next step would be to make a fresh clone of the repo in a new directory and then run the build command (not hugo server) in the new directory. Something like this:
hugo --gc --minify
Then check the public directory to see if the HTML file is created there. If it is created in the newly cloned repo when the static build command is run, please let us know.
Hi, @rino, if the files are not created locally then you will need to get the local site build issue resolved before our support team may assist.
We can troubleshoot if the issue only happens at Netlify and not locally. If the same issue happens both places, then the site code is the issue. There is no issue at Netlify. The build at Netlify is only doing what the local build does. It isn’t a Netlify issue, it is a general site build issue. (Other people here in community may have bandwidth to troubleshoot general Hugo issues but our support team must focus on Netlify specific issues. It isn’t that we don’t want to assist, only that our time available doesn’t allow us to.)
If the file does get created locally and only isn’t created at Netlify, then our support team an assist with troubleshooting.
If you are troubleshooting the Hugo issue locally, it might also help to ask about that in the Hugo community here:
Again, if you get the file working locally and it only doesn’t work at Netlify, please let us know and we’ll we happy to keep troubleshooting. If anyone else wants to troubleshoot the local Hugo issue, please feel free to chime in here anytime.
Hey there,
You don’t have an index.html file in your root and I also don’t see a build command declared, which you’ll need for deploying a Hugo site: 7:40:10 PM: No build command found, continuing to publishing
This is a great place to start for deploying Hugo sites on Netlify:
Let us know if you have additional questions after reading it over!