I made a guide for deploying Rails on OpenBSD

Hey everyone,

This is for those of you curious about Rails and OpenBSD.

So I have used the OpenBSD operating system on my server (website, email) for about two years. I really like it, and I wanted to see how it was to run Rails on it.

Read the whole thing here: Rails on OpenBSD - erict.org, it is quite detailed on how to set things up.

TL;DR: I deployed my Rails 7.1 app on an OpenBSD 7.5 server. OpenBSD as an OS that focuses on simplicity and security. It worked fine with my Rails app, but took some effort to set up. If you want low-friction deployment you should probably just use Linux for Rails apps. Recent versions of Rails also comes with a Dockerfile (which is linux native) for deployment, a template for GitHub Action CI workflow (which does not have OpenBSD runners), and is preconfigured with Kamal 2. All of these are made with linux in mind.

Please let me know if you found this interesting or useful :slight_smile:

1 Like