I have Ghost installed on a heroku app - which I was hoping to be able to edit / add posts onto and then trigger a rebuild in netlify. I think I followed the instructions well but - would appreciate any help please and thanks! If you need more info to help debug please let me know what I can do? Thanks - Zachary
I looked at your build log and you have quite a few errors in there relating to missing images, malformed filenames and such. That might be the reason it is not building as you expect. Have you looked at your log?
Thanks for getting back to me. Yes, I could see the missing images errors too.
I had exported blog posts (which must have included images) from a wordpress blog and then imported them into Ghost. When I spotted that the images were not loading correctly I tried to remove them all but I wasn’t sure exactly how to do this, as I couldn’t find where the files had uploaded to. The site is in a github repo, but I couldn’t seem to see it there.
I am going through those logs now to work out if I’ve left any images on the site still in the hopes that removing them will fix it.
Could you be more specific about the malformed file names please? How would I find and rectify those?
You asked about “deploy site from ‘dist/’”- that is the “publish” directory and it’s coming from the netlify.toml file in the repo you’re working from:
Different static site generators have different default directories that they write to, and Eleventy’s default seems to be dist/.
You can read more about the netlify.toml here:
As for the rest… were you able to get the initial deploy working with the “deploy to Netlify” button before integrating your own Ghost content- so that it was a static site on Netlify pulling from the demo site hard-coded in .env? And was your Ghost admin panel successfully set up on Heroku? Those two pieces are prerequisites for getting this working correctly. And then since you’re running into issues with the image names, I might try deleting the lazyImage plugin (or reading about how it works, depending on your troubleshooting style )- but those image filenames definitely seem to be the culprit here:
Let us know how it goes and if we can help further!