Forem Creators and Builders 🌱

Andrew Brown
Andrew Brown

Posted on

How to keep your forem server up to date for selfhost

If you are using the vanilla version of forem and you want to update we have can use the foremctl update or foremimg

foremctl is defined in the forem.yml and here we can what foremctl update is doing

update)
  echo "Updating Forem..."
  sudo /usr/local/bin/foremimg
;;
Enter fullscreen mode Exit fullscreen mode

Its simply just running foremimg

If you run foremimg or foremctl update, its going to want a repo.

Screen Shot 2021-09-15 at 11.50.40 AM

Forem's official image is hosted on quay.io

So we can just do sudo foremimg quay.io/forem/forem:latest

Screen Shot 2021-09-15 at 11.54.26 AM

Now that our tag is set we can use sudo foremctl update as expected.

Screen Shot 2021-09-15 at 12.19.47 PM

For the new image to take affect we need to run sudo forem restart

Screen Shot 2021-09-15 at 12.21.12 PM

Considerations

After you have updated and restarted your server you will want to bake an AMI if you are using AWS.

Top comments (1)

Collapse
 
jdoss profile image
Joe Doss

We update our Forem Cloud instances twice a week. I would update your Forem selfhost instance at least every couple weeks or so.