2023-12-23
- Follow up to DB migration from Render to Hetzner. Today, I moved the API server off Render. Was surprisingly easy. I even got SSL set up between frontend and backend using LetsEncrypt, which was a thing I had no idea how to do and was always kind of intimidating coming from the frontend world. The truth is, I still only vaguely know how I managed to get TLS/SSL set up, but Kamal configuration was simple/well-documented enough for me to accomplish the task in about 30 mins. Now all that’s left on Render are my cron jobs, but Kamal also has documentation for spinning those up on a VPS, so it’s just a matter of time. In terms of cost savings, I went from $25/month (note, I was actually paying $0 due to some credits I had, but the credits were set to expire in 2 months) for 1 CPU/2GB of RAM to paying $4/month for 2 CPUs/2GB RAM. Pretty sweet! And if/when I ever outgrow this server, I can easily vertically scale or just move back to Render and pay the costs for the fancier stuff
(e.g. autoscaling). The big thing that I retained is simple deployment. I commit to git and run
kamal redeploy
and within 2 mins, my changes are live.
Date
December 23, 2023