OK, let’s finally do this… I’ll upgrade my personal site from @craftcms 2 to version … 4 … I mean … 5!
-
OK, let’s finally do this… I’ll upgrade my personal site from @craftcms 2 to version … 4 … I mean … 5!
Wish me luck! -
I'm so far behind on upgrades on mine that I've decided to just start fresh when I finally have time to do this.
-
@stegrainer Yes, I thought of that, too. But there are all the blog posts in the database that I would need to move over to a fresh installation. So I’ll move the old site over to Craft 5 first, then do a redesign on top of that.
-
@matthiasott Same but @getkirby
-
@matthiasott Yeah I also have enough weird settings or things I set up and never use that I’d rather start fresh. I’d port over content for sure, but more manually.
-
So far, upgrading my personal site to @craftcms 5 is going fairly well. It already works on my machine! 🥳
The most tricky parts so far: all the changes in the template code in the step from Craft 2 to 3, which changed quite a lot, for example regarding template functions (https://craftcms.com/docs/3.x/upgrade.html#template-functions). After that, it is mostly installing the next version, respectively, with Composer and updating the database again.
Now, I’m moving the Matrix fields over from Redactor to CKEditor… -
Updating my site to @craftcms 5 also means that I’ll have to update the three plugins I wrote for Craft 2. I had already started rewriting the #Webmention plugin, but didn’t finish it. So instead of waiting until I remove this blocker (= forever), I'll now increase the pressure a bit by killing Webmentions on my site completely with this CMS update. 🥺 If I want to have Webmentions back on my site, I better finish rewriting the plugin soon…
-
The other two plugins are far less complicated: One is generating a HEX color value based on the length and the letters of a tag in my links section. This plugin (a Twig filter extension) is already done.
The other plugin is sending a request to the @internetarchive whenever I publish a new post. -
@matthiasott The Archive one you can currently test for edge cases as the archiver is read-only right now.
-
@Lippe This buys me some time…
-
@matthiasott Or it doesn't because now is the time to test how the plugin handles such case in real life.
-
-
Alright – after lots of database backups, wrangling with console commands, and rewriting the templates a bit, I now have a copy of my personal site running locally on @craftcms 5! 🥳 Time to deploy it!
(Again, this will break the Webmentions on my site, though. But I need to increase the pressure on myself to finally update my plugin for v5, sooo…)
-
Also, everything looks the same for now. But under the hood, the site is running on the latest version of Craft again. So I have the next ~10 years to update the design.
-
Done.
So far, it looks like everything is running well.Time for a good night’s sleep.
-
@flokosiol ………