I broke my site, again!

I haven't touched my site in awhile, but now I want to get into again after attending Atlanta Drupalcon.

I notice I had a commit I have not merged into main for awhile so I thought I would do that now! Well after merging, it broke my site! The homepage was rendering but any page that was not homepage was returning an error message! Taking a look at my commits there wasn't really anything that I saw that would break my site, and my local ddev was working. It has been a long time since I have pushed anything up so I was worried that there might have been an update to the systems I was not aware off!

I ssh into the server trying to look for some clear error message but the logs folders were empty, then I tried going through the admin of my hosting provider. I did find a logs area but there was nothing in the 5**, that's where I noticed the 4** tab and that had a lot of log data. I was so focused thinking I caused a server issue via php I didn't think of other possibilities. If I were to also just read the error message the browser was showing it was clearly saying page was not found. This didn't tell me exactly what went wrong but it made it more clear what I should look for and from my past experience that's normally web server stuff.

I went into github actions and looked closely at all the build steps! I noticed one section did a lot of deleting of files when I was rsyncing ( pushing files ) and behold I saw it deleted htaccess on the web root folder! Looking at my local I seen I still had it, so I just pushed that file back up and it fixed the child pages returning 404s! I think in my rsync command where I am using -exclude and -delete-after flags there might have been something that changed causing it to removed incorrect files.

Related Projects