Sending your deploy markers to Appsignal from a Phoenix app.AppSignal deploy markers are a way to keep track of what git commit the bug happened, or when the slowdown started appearing in your app. https://docs.appsignal.com/application/markers/deploy-markers.html As long as you have an APP_REVISION environm...Nov 18, 2024 · 1 min readsergiotapia.com
Deploy Your Phoenix App on DigitalOcean in 30 MinutesHey there, we're going to walk through deploying a Phoenix app to a DigitalOcean droplet, manually - no tools no nothing. Just straight up BASH! But don't worry, I've done the hard work so you don't have to. It occurred to me this week after seeing s...Aug 29, 2024 · 4 min readsergiotapia.com
Using binary ids / UUIDs for database primary keys in Rails.It's generally a good idea to use binary ids / UUIds for the primary keys in your database. Here's how to easily do it in Rails 7, using Postgres! Configure your generators to use UUID for keys. Create a file in config/initializers/generators.rb Rail...Jun 5, 2024 · 2 min readsergiotapia.com
Direct File uploads with Phoenix Liveview and Cloudflare R2.It's been really hard to figure this out and I had to cobble together many sources to get it working. Enjoy! We're going to build a direct image upload to Cloudflare B2 from the browser. That way the file doesn't travel to your servers and slow them...Jan 11, 2024 · 3 min readsergiotapia.com
DropzoneJS direct uploads to Backblaze B2 in Phoenix Liveview.Woah read that title again, what a mouthful. I've spent the last five evenings after work trying to get this to work. I've cobbled together blog posts, forums posts, github issues, hell I've spelunked chinese stackoverflow content cloner websites try...Aug 31, 2022 · 5 min readsergiotapia.com