The discussion revolves around updating a Discourse instance from version 1.0.1, which is significantly outdated. jomaxro is tasked with the upgrade and seeks advice, noting they’ve only worked with Discourse since version 1.5. robbyoconnor initially suggests a straightforward rebuild but later agrees with pfaffman that creating a temporary instance to test the upgrade is safer. jomaxro explains the constraints of their local setup, ruling out a new droplet. mpalmer proposes a safe workflow: create a temporary instance, restore the backup, verify functionality, then perform the upgrade locally. jomaxro confirms understanding of the steps, and mpalmer clarifies that a ./launcher bootstrap is needed instead of rebuild to properly set up the shared directory. pfaffman adds that the temporary instance can be any machine, including a personal workstation. jomaxro plans to use their existing staging workstation for the test.
I’ve been tasked at work with updating a Discourse instance we have that has been sitting at version 1.0.1 since…well…whenever v1.0.1 was released.
Side note: It’s so strange to see how Discourse used to look…
Anyway, over the next few days, I’m going to be working to get it up to date. I’m assuming I’ll need to use the console to rebuild, not Docker Manager, but other than that anything I should be looking out for? I only started working with Discourse at 1.5, so I won’t have read anything about Discourse prior to that.
Oops, sorry…broke out into song there. This instance is hosted locally, and not on DO where I can simply make a new droplet to play with. I can try to convince IT, but I’m not sure I’ll be able to. Lots of extra stuff, (like DNS), to deal with if I was to make a new instance.
Don’t necessarily migrate to the new instance; create a temporary instance, restore onto it, check it all works OK, then create a new container in the original location, shut down the old one, and restore the upgraded backup. Not that that should be any different, functionally, to doing an in-place upgrade, but at least you won’t blow up the live site if things don’t go according to plan (which, given how old that instance is, I wouldn’t rule out).
Pretty much, although you don’t have to move all of /var/discourse out of the way, just shared/app (or whatever it’s called). Run a ./launcher bootstrap rather than a rebuild, because I think that does extra stuff to setup the shared directory again.