Back to homepage

Twenty Years of Blogging, One Less Thing to Maintain

I started a blog in 2006. It was a small blog where I wrote my trading diary, market thoughts, and anything in between.

Over the years, I've written more than a thousand blog posts. There were also thousands of comments, images, and links.

Some articles are still relevant today. Others are better off hidden. But they are all part of my journey as a trader. TraderGav.com is now 20 years old.

The website has been running on WordPress since day one. I've been upgrading WordPress, changing themes, playing around with shortcodes, and managing plugins, even when I wasn't posting regularly.

It was fun when I had the time.

Fast forward to today, I still write occasionally, but I'm not as active as I was years ago. The site acts more like an archive of my writing rather than an active blog.

But I'm still paying hosting fees annually and spending time and effort maintaining WordPress. With another renewal approaching, I decided to explore options outside WordPress.

Why move away from WordPress?

First, I want to be clear. WordPress isn't bad at all.

It's a powerful content management system for personal blogs.

It served me well for 20 years. I could write, publish posts, manage content, and change the look and feel of the site without much coding effort.

But I no longer need all these features.

I mostly need a place to keep my old writing, for me to look back on occasionally and for readers who are interested in my past work.

I don't need a database, a collection of plugins, or a full content management system.

I could have paid for another year of hosting and continued as usual. It would have been the easier option.

But since I'm already using Cloudflare for my other projects, I started exploring whether I could use it to host a static website.

A static website is simple in principle. Instead of letting WordPress generate a page from a database when someone visits, a static website already has the pages ready to serve.

There would be no WordPress installation and no database needed to display the content.

Cloudflare could host the website at a much lower cost, possibly with very little ongoing maintenance.

That sounded like a good fit for me.

Now, the challenge was to migrate 20 years of content out of WordPress without losing anything important.

I decided to use Codex

I've been building apps and refining my PKM workflow with Codex. It's my coding agent of choice at the moment.

So I thought this site migration would be a good opportunity to see how well it could handle something larger and more complicated.

I knew how to work with WordPress, but I was definitely not a fan of spending weeks manually converting articles, fixing URLs, and sorting through old media files.

Simply exporting everything and hoping for the best was not an option.

My main requirement was to preserve the existing website and its content as much as possible.

I started the project by asking Codex to audit the WordPress website. I wanted to understand what we were dealing with before changing anything.

The audit found 1,364 published posts, 25 pages, and more than 3,200 approved comments. There were also categories, tags, attachments, and hundreds of megabytes of media files.

A public crawl identified more than 4,600 URLs, including existing redirects and broken links.

That's quite a lot of stuff for a website I hadn't actively maintained for some time.

It also gave me a clear signal that this wasn't going to be a straightforward migration project.

Twenty years of WordPress had left behind plenty of things to sort out.

The migration wasn't as simple as I expected

I worked with Codex to break the migration into smaller phases.

The rule was clear from the beginning: don't touch the live WordPress website until the replacement is ready.

I wanted to make sure I could stop or roll back if something went wrong.

We began with backups of the WordPress database, exported content, and media files.

Codex then worked through converting the content into a format suitable for the static website, preserving URLs, processing media files, and building the new site.

The plan was to preserve as much as possible from the live WordPress site, including its design.

As expected, we ran into problems.

Over the years, I'd changed themes, tried plugins, and customised layouts. These left quite a mess behind.

Some media files were duplicated. Others had missing references.

There were WordPress shortcodes that needed converting, along with formatting created by plugins that would no longer exist on the new website.

At one point, we discovered that category names hadn't been extracted correctly during conversion. That needed another round of checking and correction.

The old URLs were another concern.

Articles published many years ago might still have links pointing to them from other websites or forums.

I didn't want to break those links unnecessarily.

Next, the comments. Back in the day, I had discussions with readers in the comment section. They were worth preserving.

I wasn't trying to recreate every WordPress feature. The goal was to keep the content and the parts of the website that still mattered.

At this point, we had a clearer picture of what needed fixing and what could be left behind.

Working with Codex

This migration project gave me a better understanding of where AI coding agents are useful.

I started with brainstorming sessions in ChatGPT to plan the migration. Later, I moved on to execution with Codex.

Codex could examine large numbers of files, write conversion scripts, run tests, compare outputs, and investigate problems.

I wouldn't have been able to do this alone before. The amount and complexity of the work were too much for me. It would have taken a considerable amount of time, and I probably would have dropped the idea of migration altogether.

Having said that, it wasn't a case of giving Codex one instruction and coming back to a finished website either.

We worked through the migration in stages.

Much of the complexity came from my goal of migrating the existing site rather than revamping it and building a brand-new one.

Codex would analyse a problem, propose a solution, implement it, and run checks. I would review the results before moving on.

Sometimes we needed another round because the first solution wasn't quite right.

There were also decisions that I preferred to make myself.

Should we spend more time recovering an old image? Was a particular WordPress feature still necessary? Was an existing issue worth fixing as part of the migration?

Not every problem needed a technical solution.

I was also careful about access to my hosting and Cloudflare accounts.

Codex handled the code, migration files, and technical checks. I handled account settings and DNS changes myself.

It was a practical arrangement.

I didn't need the AI to do everything. I needed it to help with the work that would otherwise have taken me much longer.

I also learned not to treat a successful build or passing tests as proof that everything was correct.

We checked the converted content, URLs, media, and production output at different stages.

It was sometimes repetitive, but necessary.

Moving the website to Cloudflare

I used a simple workflow for this project:

Local machine → GitHub → Cloudflare

Local machine: edit and build → GitHub: version control → Cloudflare: host the website

The website files are maintained on my local Ubuntu machine, where I can work with Codex to make changes and run tests. GitHub keeps track of the changes, and Cloudflare hosts the published website.

This is a significant change. It means I no longer need to log in to WordPress whenever I want to update something.

I maintain and write new content in Markdown format in Obsidian. Codex helps test and verify that everything works locally before the changes are pushed to the GitHub repository.

Cloudflare is connected directly to the GitHub repository. Whenever I push changes to the main branch, Cloudflare automatically builds and deploys the updated website.

I don't need to manually upload files to a web server or log in to a WordPress dashboard.

Of course, I still need to check the changes before pushing anything to GitHub. But once I'm satisfied with the changes, publishing is largely automatic.

After deployment, I monitored the Cloudflare traffic and error statistics.

So far, everything looks healthy.

The interesting thing is that, from a visitor's perspective, very little has changed.

That's exactly what I wanted.

I wasn't trying to give the website a new identity. I just wanted to keep the old website running with less maintenance.

So, was it worth the effort?

For me, yes.

TraderGav.com now runs as a static website on Cloudflare.

The original WordPress content has been converted, the historical archive remains available, and the website no longer needs WordPress or a database to serve its pages.

The source code is stored in GitHub, and I have backups of the original WordPress data.

The hosting cost is much lower, and there are fewer things to maintain.

The migration involved a lot of testing and verification. We checked the converted content, URLs, media, and production deployment before considering the project complete.

So far, everything has been working as expected.

Of course, the website will still need attention if I decide to make changes in the future. But for now, it's stable and doing what I need it to do.

That's good enough.

A few things I learned

Looking back, I'm glad I went ahead with the migration.

The decision has not only saved me money on hosting costs, but also the time and effort of maintaining a system that had become unnecessarily complicated for my needs.

This project gave me hands-on experience working with AI coding agents. I learned how to communicate with AI when I hit a problem, not to accept everything it presented to me, and how to work more efficiently to optimise my token usage.

It takes more involvement than simply asking AI to build something and trusting the output.

But it gives me more confidence in the result.

Overall, I love working with AI. It's the best co-worker I could ever have.

And there was another lesson from this project.

I must admit that I kept using WordPress simply because I'd been using it for years.

WordPress was useful when TraderGav.com was an active blog. It gave me everything I needed at the time.

But as time passed, the website's purpose changed. I hadn't really reconsidered whether the technology still suited it.

I didn't need to replace WordPress with something more sophisticated. I just needed a simpler way to keep the articles online.

Twenty years later, I'm glad the humble personal trading blog is still there.

The writing hasn't changed. The history is still there.

I just have one less thing to maintain.