Home Page of Ron Star

Rails Deployed

After weeks of fighting with deploying a new Rails app to Linode I finally got it. I remember it being hard back in the day, but after Phusion Passenger came out it got pretty easy.

I tried Cap and Passenger on Nginx first, but that was having issues. I just could not remember what I needed to do.

So I tried out the new Kamal deployment for Rails 8. First the instructions and the video doesn’t tell you everything. It’s missing quite a lot actually. Then you have to have a docker account to use the thing. Another service hosting your content. No really my deal. Then finally it doesn’t even work.

I kept fixing missing things, then I got to the point where it just would not compile the assets and I gave up.

I logged into an old server I used to manage with a rails setup. I copied the nginx setup and looked how it was configured with cap. Finally after getting all the missing dependencies in place it started working.

So that’s up and I just need a cap prod deploy to deploy it when needed. Wish I was using Caddy for the web server, but I can’t have everything…yet.