PokéProject Dev Diary: Day Six
Move fast, break shit.
Sometimes you wish you’d never started.
Well, day six was a bit of a depressing development experience.
What a depressing evening that was.
To cut a long story short, I started out with the aim improving the SEO of PokéProject by upgrading the website to use HTTPS, because that’s generally better and it has an impact on your Google rankings. I used LetsEncrypt to get the certificates (which worked fine) and navigated the mysterious world of Nginx config files successfully, rebooted and we had the certificates all sorted.
Emboldened by this, I decided to go one step further, and that’s where it all fell apart. Because adding HTTPS was so unexpectedly simple, I thought I’d go a step further and add the Pagespeed module to my server as well, bringing features like automated optimisations to bear. It turns out that’s much more complicated in practice. Three hours later and every website on the same box is offline and I can’t bring them back.
“Just get it back online.”
My micro-deadlines get smaller and simpler, my success criteria re-defines itself to “just get it back online” and in the end — at gone midnight — I end up reverting to a backup snapshot of the box.
Retrospective
Wow, that was humiliating. In retrospect I certainly shouldn’t have tried something so complicated as recompiling nginx without practicing it first in a safe environment, and in the same vein I really shouldn’t be working without decent backups or multiple environments.
In my day job we use multiple environments — Local, Dev, QA & Production — all of the time, so why did I think my side-projects should be any different?
Ugh. Well, lesson learned. Next time we’ll look at something a little more interesting, and stop mucking around with things we don’t understand.
PokéProject is (fortunately) back online at: https://www.pokeproject.co.uk
This post was originally published at https://medium.com/@psyked/pok%C3%A9project-dev-diary-day-six-c263ef30fd0c